Stats models should inherit from this
Optionally given a filename or label_prefix, create an MmStats instance
Both filename and path support the following variable substiutions:
This class is not threadsafe, so you should include both {PID} and {TID} in your filename to ensure the mmaped files don’t collide.
Mmstats default model base class
Just subclass, add your own fields, and instantiate:
>>> from mmstats.models import MmStats
>>> from mmstats.fields import CounterField
>>> class MyStats(MmStats):
... errors = CounterField()
...
>>> stats = MyStats()
>>> stats.errors.inc()
>>> stats.errors.value
1L