pyprof2calltree
Help visualize profiling data from cProfile with kcachegrind and qcachegrind
Decision gist · record as of 2026-08-14
Yes, if you already use kcachegrind or qcachegrind and need to profile Python code. The package is stable, has no dependencies, and does its job well. However, be aware it is abandoned—no updates since 2020. If you need profiling for modern Python versions or expect ongoing maintenance, consider whether your Python version and kcachegrind compatibility are confirmed before relying on it for critical workflows.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires kcachegrind or qcachegrind to be installed on your system to visualize the converted profiling data; the package only handles conversion, not the viewer itself.
- High install friction due to lack of runtime dependencies but the package is abandoned—last release was 2020-04-19 and last commit 2021-02-28.
- No active maintenance means bug fixes or compatibility updates for newer Python versions are unlikely.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or distribution in your own projects.
last release 2020-04-19 (2308 days) · last repo commit 2021-02-28 · 169 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 169,946 downloads/mo, #10,405 on PyPI
Alternatives
Verify before relying
pip install pyprof2calltree
from cProfile import Profile
from pyprof2calltree import convert, visualize
profiler = Profile()
profiler.runctx("code_to_profile()", globals(), locals())
visualize(profiler.getstats()) # opens kcachegrind
convert(profiler.getstats(), 'output.kgrind') # save for later- Whether the package works reliably with Python versions beyond 3.8 (classifiers list 3.8 as the latest tested version).
- Current compatibility with modern versions of kcachegrind/qcachegrind and whether the calltree format has remained stable.
- Whether the Windows support mentioned in 1.4.3 changelog remains functional given the lack of recent maintenance.
What it is and what it does
pyprof2calltree is a command-line and Python library tool that bridges Python's built-in cProfile profiler and the kcachegrind/qcachegrind graphical profiling viewers. It reads profiling statistics from cProfile (either from live profiler objects or saved .stats files) and converts them into the calltree format that kcachegrind understands, allowing you to explore call graphs, see function call counts, and identify performance bottlenecks visually.
The package provides both a command-line interface for batch conversion and Python functions (convert, visualize) for interactive use in shells or notebooks. It has no runtime dependencies, making installation straightforward, but it requires kcachegrind or qcachegrind to be installed separately on your system to actually view the results. The project is stable and production-ready but abandoned—no active development since early 2021.
Use it for
- Convert cProfile output to kcachegrind format for interactive exploration of function call hierarchies and execution time.
- Profile Python scripts from the command line and automatically launch kcachegrind to visualize the results.
- Save profiling data in calltree format for later analysis or sharing with team members using kcachegrind.
- Integrate profiling visualization into interactive Python sessions or Jupyter notebooks for quick performance debugging.
- Identify performance bottlenecks by visualizing which functions consume the most time and how often they are called.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you already use kcachegrind or qcachegrind and need to profile Python code.
The package is stable, has no dependencies, and does its job well. However, be aware it is abandoned—no updates since 2020. If you need profiling for modern Python versions or expect ongoing maintenance, consider whether your Python version and kcachegrind compatibility are confirmed before relying on it for critical workflows.
Install
pyprof2calltree on PyPI
Before you install
High install friction due to lack of runtime dependencies but the package is abandoned—last release was 2020-04-19 and last commit 2021-02-28. No active maintenance means bug fixes or compatibility updates for newer Python versions are unlikely.
Requires kcachegrind or qcachegrind to be installed on your system to visualize the converted profiling data; the package only handles conversion, not the viewer itself.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in your own projects.
Quickstart
pip install pyprof2calltree
from cProfile import Profile
from pyprof2calltree import convert, visualize
profiler = Profile()
profiler.runctx("code_to_profile()", globals(), locals())
visualize(profiler.getstats()) # opens kcachegrind
convert(profiler.getstats(), 'output.kgrind') # save for later
Verify before relying
- Whether the package works reliably with Python versions beyond 3.8 (classifiers list 3.8 as the latest tested version).
- Current compatibility with modern versions of kcachegrind/qcachegrind and whether the calltree format has remained stable.
- Whether the Windows support mentioned in 1.4.3 changelog remains functional given the lack of recent maintenance.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,308 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 169,946 / month, #10,405 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: X11 Applications :: KDELicense :: OSI Approved :: MIT LicenseOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Desktop Environment :: K Desktop Environment (KDE)Topic :: Software DevelopmentTopic :: Software Development :: Quality AssuranceTopic :: System :: System ShellsTopic :: Utilities |
Evidence: pyprof2calltree-1.4.5.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “kcachegrind converter”
- pyprof2calltreeConverts Python cProfile profiling data into kcachegrind/qcachegrind…
- yappiYappi is a deterministic profiler for Python that tracks CPU and…
- onnx2torchConverts ONNX models to PyTorch modules with a simple API, supporting…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also tuna · flameprof · line-profiler · django-cprofile-middleware · pytest-profiling · pyinstrument · xprof · tensorboard-plugin-profile · snakeviz · qm-octave