Greenlet BottleNeck profiler.
Project description
Greenlet BottleNeck profiler.
Measures time precisely using “greenlet.settrace” to pause/continue counting time on switch from/to original greenlet.
May count wall-clock time too. Also counts step calls and context switches.
Usage:
gbn_attach() gbn('step1') step1() gbn('step2') step2() wall = gbn('step3') step3() wall = gbn('step4', wall=wall) step4() gbn('step5', wall=wall) step5() gbn() does_not_count_this() log.info(gbn_report_and_reset()) # OR spawn(gbn_report_and_reset, each=60, log=log.info)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gbn-0.4.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
gbn-0.4.2-py2-none-any.whl
(4.7 kB
view hashes)