$npx skillfedfor your agent

pyprof2calltree

Help visualize profiling data from cProfile with kcachegrind and qcachegrind

With conditionsPyPI Software DevelopmentReleased Apr 2020169.9K downloads / moMITSource build

Decision gist · record as of 2026-08-14

sdist only — pyprof2calltree-1.4.5.tar.gz · builds from source
v1.4.5 · released 2020-04-19

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseMIT permissive
Python supportNot specified
Install frictionHigh. Source build required
Runtime dependenciesNone
MaintenanceAbandoned 2,308 days since the last release
Last repo commit
First released
Downloads169,946 / month, #10,405 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
cProfile visualizationkcachegrind converterprofiling data analysiscalltree format conversionperformance profiling toolqcachegrind integrationcall graph visualization
Topics
profilingvisualizationdebugging
PyPI keywords
profilervisualizationprogrammingtoolkdekcachegrindqcachegrind

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

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also tuna · flameprof · line-profiler · django-cprofile-middleware · pytest-profiling · pyinstrument · xprof · tensorboard-plugin-profile · snakeviz · qm-octave