gbn 0.4.3

Creator: bradpython12

Last updated:

Add to Cart

Description:

gbn 0.4.3

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)
See help(gbn) for detailed docs.
Additional tools:

gxray - Heavy profiler when you don’t know where to profile.
gswitched - Checks if greenlet switched.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.