vivster7 / pttp

Python Tracing Profiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Python Tracing Profiler

License:MIT License


Languages

Language:Python 100.0%