A port of the simple (but brilliant) tracer_bullets
for Ruby.
Rubber Bullets extends Python's logging
library to calculate the elapsed
time between successive trace()
calls. Pepper your code with traces,
and figure out where things are slowing down--no fancy profiling required!
import rubber_bullets
tracer = rubber_bullets.getTracer()
tracer.trace()
... # Some more code
tracer.trace()
Should output:
TRACE:_RubberBullet: Elapsed: 3.045ms example.py:4
TRACE:_RubberBullet: Elapsed: 523.365ms example.py:6
Better formatting/support for colorizing output PyPI registration