Skip to main content

Python tracing profiler

Project description

pttp

PyPI - Version PyPI - Python Version


A Python tracing profiler.

Tracing profilers trace every function call in your Python program.

Tracing profilers in Python are fairly trivial (mostly just calling sys.settrace()). pttp's notable feature is it calls your code, so you don't have to modify your source code.

Installation

pip install pttp

Usage

## Generate Python trace data
python -m pttp your_script.py
python -m pttp -m your_script

## Upload 'your_script.speedscope.json' to https://speedscope.app to view the profile.

License

pttp is distributed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pttp-0.0.2.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

pttp-0.0.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page