1 1.1 christos #ifndef JEMALLOC_INTERNAL_PEAK_EVENT_H 2 1.1 christos #define JEMALLOC_INTERNAL_PEAK_EVENT_H 3 1.1 christos 4 1.1 christos /* 5 1.1 christos * While peak.h contains the simple helper struct that tracks state, this 6 1.1 christos * contains the allocator tie-ins (and knows about tsd, the event module, etc.). 7 1.1 christos */ 8 1.1 christos 9 1.1 christos /* Update the peak with current tsd state. */ 10 1.1 christos void peak_event_update(tsd_t *tsd); 11 1.1 christos /* Set current state to zero. */ 12 1.1 christos void peak_event_zero(tsd_t *tsd); 13 1.1 christos uint64_t peak_event_max(tsd_t *tsd); 14 1.1 christos 15 1.1 christos /* Manual hooks. */ 16 1.1 christos /* The activity-triggered hooks. */ 17 1.1 christos uint64_t peak_alloc_new_event_wait(tsd_t *tsd); 18 1.1 christos uint64_t peak_alloc_postponed_event_wait(tsd_t *tsd); 19 1.1 christos void peak_alloc_event_handler(tsd_t *tsd, uint64_t elapsed); 20 1.1 christos uint64_t peak_dalloc_new_event_wait(tsd_t *tsd); 21 1.1 christos uint64_t peak_dalloc_postponed_event_wait(tsd_t *tsd); 22 1.1 christos void peak_dalloc_event_handler(tsd_t *tsd, uint64_t elapsed); 23 1.1 christos 24 1.1 christos #endif /* JEMALLOC_INTERNAL_PEAK_EVENT_H */ 25