Skip to content

ssanderson/pstats-view

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
img
 
 
 
 
 
 
 
 
 
 
 
 

pstatsviewer

An Interactive, Graphical, Interactive PStats viewer/diff tool for IPython Notebook.

pstatsviewer uses pandas dataframes to parse, align, and display the output of Python's built-in profiling tool, cProfile. It also provides the ability to compare two distinct pstats files, making it easy to do performance regression testing with different versions of the same code.

##Examples:

v = StatsViewer("./naive.stats")
v2 = StatsViewer("./fast.stats")

v1.view(25, 'cumtime')

TableView GraphView

v1.interact()

InteractView

v.compare(v2)

DiffTable DiffGraph

More usage examples can be seen in the Example Notebook on NBViewer (note that the interactive widget view will not display on nbviewer).

##Running the Example Notebook

  1. Clone this repo.
  2. Run pip install -r requirements.txt.
  3. Run ipython notebook examples/ExampleView.ipynb.

About

An Interactive, Graphical, Diffable PStats Viewer for IPython Notebook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages