Skip to content
Tony Narlock edited this page May 25, 2016 · 2 revisions

There is no benchmark suite as of May 25, 2015, but there are several ways to profile using python tools.

As with many debug tools, it expected to incur a large performance penalty while running the program.

profiling

what-studio/profiling can be used as a remote profiler for python-prompt-toolkit and related projects.

pip install profiling

Example usage:

  1. Open two terminal windows

  2. (Window 1) Launch application with remote debugger

    $ profiling view 127.0.0.1:8912 examples/get-input-vi-mode.py

  3. (Window 2) Launch profiling screen

    $ profiling view 127.0.0.1:8912

  4. Use the Arrow keys (up, down, right) and > to navigate the function calls.

pprofile

https://github.com/vpelletier/pprofile can also be used to generate profiling output after usage.

Clone this wiki locally