A library to easily measure what's going on in your python.
To install :
pip install metrology
>>> from metrology import Metrology
>>> counter = Metrology.counter('call')
>>> counter.increment()
>>> from metrology import Metrology
>>> meter = Metrology.meter('request')
>>> meter.mark()
>>> from metrology import Metrology
>>> timer = Metrology.timer('request')
>>> with timer:
... do()
>>> from metrology import Metrology
>>> meter = Metrology.utilization_timer('request')
>>> from metrology.reporter.logger import LoggerReporter
>>> reporter = LoggerReporter()
>>> reporter.start()
>>> from metrology.reporter.graphite import GraphiteReporter
>>> reporter = GraphiteReporter('localhost', 3333)
>>> reporter.start()
This is heavily inspired by the awesome metrics library.