Skip to content

jorisvandenbossche/vprof

 
 

Repository files navigation

Build Status

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 2.7, Python 3.4, Python 3.5 and distributed under BSD license.

The project is in active development and some of it's features might not work as expected.

Screenshots

flame-chart memory-stats code-heatmap

Prerequisites

The required dependencies to build vprof from source code:

  • Python 2.7, Python 3.4 or Python 3.5
  • pip
  • npm >= 3.3.12

Dependencies

All Python and npm module dependencies are listed in package.json and requirements.txt.

Installation

vprof can be installed from PyPI

pip install vprof

To install current dev version, clone this repository and execute

make install

To install just vprof dependencies, run

make deps_install

Usage

vprof <modes> <test_script>

Supported modes:

  • c - flame chart. Renders running time visualization for <test_script>.
  • m - memory graph. Shows memory usage during execution of each line of <test_script>.
  • h - code heatmap. Shows number of executions of each line of code.

Modes can be combined:

vprof cm testscript.py

Check vprof -h for full list of supported parameters.

Testing

Just run

make test

License

BSD

About

Visual Python profiler

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 49.3%
  • Python 44.5%
  • CSS 4.9%
  • Other 1.3%