mmstats
mmstats copied to clipboard
Memory Mapped Stats Tools
The normal pattern to remove mmstats files on exit is: ``` python import mmstats from mmstats import MmStats class SomeStats(MmStats): pass s = SomeStats() atexit.register(s.remove) ``` However if "s" is...
So I have a Python project that I'm trying to gather stats in. I need to instantiate objects which cross thread boundaries, and those objects are in multiple modules, so...
It's probably a good idea to sync mmaps atexit even if they aren't removed. Probably will need to register the atexit handler in **init** so it's done once per thread....
It's kind of large and in charge right now.
mmstats.libgettid.gettid returns None of OSX, which causes the default mmstats.MmStats to fail
Python 2.7.2 (mmstats) C:\REPO\mmstats>python mmstats\mmash.py Traceback (most recent call last): File "mmstats\mmash.py", line 11, in from mmstats import reader as mmstats_reader File "C:\REPO\mmstats\mmstats__init__.py", line 5, in from .models import *...
Homogeneous lists would allow readers to implement statistical analysis calculations such as min/max, mean, standard deviation, and percentiles.
For example: a list of numbers can be exposed to readers as a few fields: average, median, percentiles (eg 75th, 95th, 99th).