Python call tree profiler for the terminal
Project description
runmap
Visualize Python function call trees with timing in the terminal
Run any script through runmap and see a tree of every function call, how long each took, and where the hot spots are
Getting Started
pip install runmap
python -m runmap script.py
python -m runmap script.py --min-ms 5 --depth 3
python -m runmap script.py --out run.trace
python -m runmap diff before.trace after.trace
Features
- Call tree view: shows the full function call hierarchy with per-node timing.
- Time bars: proportional block bars next to each node for quick visual scanning.
- Hot markers: flags functions whose self time exceeds 20% of total runtime.
- Depth and threshold filters:
--depthand--min-mstrim noise from large trees. - Trace files:
--outsaves a.traceJSON file for later comparison. - Diff mode:
runmap diff A.trace B.traceshows a delta table (faster/slower/new). - Sampling mode:
--sampleuses signal-based 100 Hz sampling instead ofsys.settrace(Unix only).
Requirements
- Python 3.10+
- rich >= 13.0
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runmap-0.1.1.tar.gz.
File metadata
- Download URL: runmap-0.1.1.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02fcd24140b661562520a3a23aa9401a3f5a97397cacaba3a149f4144dddbb99
|
|
| MD5 |
e1c3f3024a7262be16f6188ea0155d06
|
|
| BLAKE2b-256 |
2538856c25f54e2fb2ba85f49d21e4328e1399f0dcbf96b8df8fd72b6a619b1c
|
Provenance
The following attestation bundles were made for runmap-0.1.1.tar.gz:
Publisher:
publish.yml on nazarhktwitch/runmap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runmap-0.1.1.tar.gz -
Subject digest:
02fcd24140b661562520a3a23aa9401a3f5a97397cacaba3a149f4144dddbb99 - Sigstore transparency entry: 1809858203
- Sigstore integration time:
-
Permalink:
nazarhktwitch/runmap@7491d7f0f9b86c881f285a6b17b927b75f9dfb0d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/nazarhktwitch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7491d7f0f9b86c881f285a6b17b927b75f9dfb0d -
Trigger Event:
push
-
Statement type:
File details
Details for the file runmap-0.1.1-py3-none-any.whl.
File metadata
- Download URL: runmap-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f75ed013003e2530f780496157d49d7081c6700d63ad23d622db30f46ef1e551
|
|
| MD5 |
a0953fd4d97f10d0b9b17feac91398c6
|
|
| BLAKE2b-256 |
3b94e811763dc88fe3ed1dc2ecf8f29666eff2fe8147ea42f0ea16aead439a10
|
Provenance
The following attestation bundles were made for runmap-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on nazarhktwitch/runmap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runmap-0.1.1-py3-none-any.whl -
Subject digest:
f75ed013003e2530f780496157d49d7081c6700d63ad23d622db30f46ef1e551 - Sigstore transparency entry: 1809858216
- Sigstore integration time:
-
Permalink:
nazarhktwitch/runmap@7491d7f0f9b86c881f285a6b17b927b75f9dfb0d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/nazarhktwitch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7491d7f0f9b86c881f285a6b17b927b75f9dfb0d -
Trigger Event:
push
-
Statement type: