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