statvent
statvent copied to clipboard
A simple library for tracking runtime stats about Python applications.
Percentiles are calculated against the last N sampled data points. If the volume is low, that might be statistically misleading. Probably something worth looking into more deeply.
statvent uses `+=` to do `incr`. That operation is not thread-safe. If multiple threads are incrementing a metric at the same time, some of the increments will probably be lost.
The deque defaults to a `max_size` of 100. When you pass in a custom size to the `_StatRecorder` constructor, it changes the `default_factory` of the parent `defaultdict` to produce deques...