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.1.tar.gz (14.5 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.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

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

Hashes for runmap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 02fcd24140b661562520a3a23aa9401a3f5a97397cacaba3a149f4144dddbb99
MD5 e1c3f3024a7262be16f6188ea0155d06
BLAKE2b-256 2538856c25f54e2fb2ba85f49d21e4328e1399f0dcbf96b8df8fd72b6a619b1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for runmap-0.1.1.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.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

Hashes for runmap-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f75ed013003e2530f780496157d49d7081c6700d63ad23d622db30f46ef1e551
MD5 a0953fd4d97f10d0b9b17feac91398c6
BLAKE2b-256 3b94e811763dc88fe3ed1dc2ecf8f29666eff2fe8147ea42f0ea16aead439a10

See more details on using hashes here.

Provenance

The following attestation bundles were made for runmap-0.1.1-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