Add forking handling for stats

This commit is contained in:
Yinan Zhang
2020-04-15 15:09:32 -07:00
parent 508303077b
commit f533ab6da6
3 changed files with 21 additions and 0 deletions

View File

@@ -44,5 +44,8 @@ bool stats_interval_accum(tsd_t *tsd, uint64_t bytes);
void stats_print(write_cb_t *write_cb, void *cbopaque, const char *opts);
bool stats_boot(void);
void stats_prefork(tsdn_t *tsdn);
void stats_postfork_parent(tsdn_t *tsdn);
void stats_postfork_child(tsdn_t *tsdn);
#endif /* JEMALLOC_INTERNAL_STATS_H */