Skip to main content

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: --depth and --min-ms trim noise from large trees.
  • Trace files: --out saves a .trace JSON file for later comparison.
  • Diff mode: runmap diff A.trace B.trace shows a delta table (faster/slower/new).
  • Sampling mode: --sample uses signal-based 100 Hz sampling instead of sys.settrace (Unix only).

Requirements

  • Python 3.10+
  • rich >= 13.0

License

MIT

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

runmap-0.1.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runmap-0.1.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file runmap-0.1.0.tar.gz.

File metadata

  • Download URL: runmap-0.1.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for runmap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d29c514ae8cf50661baa2c8fe3b077fd9e60113ce4552b4fbf23639c9cb38029
MD5 e16d4fcfd72aad787f02d9f3f6990014
BLAKE2b-256 e52846a5c829a955899b02527736d2606ce5d936033c8afc127a104a16029f9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for runmap-0.1.0.tar.gz:

Publisher: publish.yml on nazarhktwitch/runmap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file runmap-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: runmap-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for runmap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 254ac58b4ecaf866fd94dfb54df55fcb5f4427ab474762030f0907a2d2d6da97
MD5 8c3418bfd54b151f19296ba2fa9a8284
BLAKE2b-256 c1167537705aa21bd39b59cbcabb5aac2622691f4ef0ee2fccac527dac67475e

See more details on using hashes here.

Provenance

The following attestation bundles were made for runmap-0.1.0-py3-none-any.whl:

Publisher: publish.yml on nazarhktwitch/runmap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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