vprof

Python package providing rich and interactive visualizations for various Python program characteristics such as running time and memory usage.

Visit vprof

vprof is a Python package providing rich and interactive visualizations for various Python program characteristics such as running time and memory usage. It supports Python 3.4+ and distributed under BSD license. The project is in active development and some of its features might not work as expected. Usage is simple:

vprof -c <config> <src>

<config> is a combination of supported modes:

  • c - CPU flame graph ⚠️ Not available for windows #62

Shows CPU flame graph for <src>.

  • p - profiler

Runs built-in Python profiler on <src> and displays results.

  • m - memory graph

Shows objects that are tracked by CPython GC and left in memory after code execution. Also shows process memory usage after execution of each line of <src>.

  • h - code heatmap

Displays all executed code of <src> with line run times and execution counts.

<src> can be Python source file (e.g. testscript.py) or path to package (e.g. myproject/test_package).

To run scripts with arguments use double quotes

vprof -c cmh "testscript.py --foo --bar"
Share:
Featured tools:

Similar to vprof:

Databases for lazy people. Simple SQL data handling.
ORMsPython
Handle SQL data stores easily with implicit table creation, bulk loading, and transaction support. Makes database operations feel like working with JSON.
Build better web apps more quickly with less code.
Full-stack Web FrameworksPython
High-level Python web framework for rapid development and clean design. Handles common web development tasks, focusing on speed, security, and scalability.
IPython power for your Python debugging sessions.
DebuggingPython
Integrate IPython's enhanced features like tab completion, syntax highlighting, and better tracebacks into the standard Python debugger (pdb).
Visualize and debug distributed workflows.
DebuggingTracing
Monitor and troubleshoot request flows across complex distributed systems. Identify bottlenecks, trace errors, and analyze service dependencies.
Compress and transform data buffers efficiently in Python.
Data CompressionPython
Compress and transform data buffers in Python for efficient data storage and communication. Supports various codecs and integrates with array libraries.
Generate Python API docs instantly from your code.
DocumentationPython
Automatically generate API documentation for Python projects from existing docstrings. Supports type hints, cross-linking, and common docstring formats.
A small, expressive Python ORM for simpler database interactions.
ORMsPython
Build Python applications with a simple, expressive ORM. Supports PostgreSQL, MySQL, SQLite, and CockroachDB. Features easy model definition and powerful querying.
Simple, fast, file-based key-value storage for Python.
DatabasesPython
Store key-value data easily in Python with this lightweight, file-based library. Offers simple API, fast performance, and asynchronous support.
Query databases naturally with Python generators.
ORMsPython
Write database queries using Python generator expressions. Translates Python syntax trees to SQL for SQLite, MySQL, PostgreSQL, and Oracle. Features an ERD editor.

Command Menu