vprof
is a Python package providing rich and interactive visualizations for
various Python program characteristics such as running time and memory usage.
The project is in active development and some of it's features might not work as
expected. It currently supports Python 2.7 and distributed under BSD license.
Python 3 support is experimental.
The required dependencies to build vprof
from source code:
- Python 2.7, Python 3.4 or Python 3.5
pip
npm
>= 3.3.12
All Python and npm
module dependencies are listed in package.json and requirements.txt.
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
Currently vprof
supports running time (via flame chart) and memory usage
visualization.
In order to get flame chart for specified Python program run
vprof c <test_script>
vprof
will run <test_script> and open flame chart in new tab of default web
browser.
Memory stats visualization can be obtained by executing
vprof m <test_script>
Options can be combined
vprof cm <test_script>
Check vprof -h
for full list of supported parameters.
All tests can be run by executing
make test
BSD