diff options
Diffstat (limited to 'src/base/statistics.hh')
-rw-r--r-- | src/base/statistics.hh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh index a6edde2f9..f4b12e847 100644 --- a/src/base/statistics.hh +++ b/src/base/statistics.hh @@ -3209,6 +3209,15 @@ void enable(); bool enabled(); /** + * Register reset and dump handlers. These are the functions which + * will actually perform the whole statistics reset/dump actions + * including processing the reset/dump callbacks + */ +typedef void (*Handler)(); + +void registerHandlers(Handler reset_handler, Handler dump_handler); + +/** * Register a callback that should be called whenever statistics are * reset */ @@ -3220,6 +3229,16 @@ void registerResetCallback(Callback *cb); */ void registerDumpCallback(Callback *cb); +/** + * Process all the callbacks in the reset callbacks queue + */ +void processResetQueue(); + +/** + * Process all the callbacks in the dump callbacks queue + */ +void processDumpQueue(); + std::list<Info *> &statsList(); typedef std::map<const void *, Info *> MapType; |