Skip to content

johnconnelly75/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. 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.

Screenshots

flame-chart memory-stats

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

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.

Testing

All tests can be run by executing

make test

License

BSD

About

Visual Python profiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.4%
  • JavaScript 42.4%
  • CSS 4.8%
  • Other 1.4%