Home | History | Annotate | Line # | Download | only in internal
      1  1.1  christos #ifndef JEMALLOC_INTERNAL_PROF_RECENT_H
      2  1.1  christos #define JEMALLOC_INTERNAL_PROF_RECENT_H
      3  1.1  christos 
      4  1.1  christos extern malloc_mutex_t prof_recent_alloc_mtx;
      5  1.1  christos extern malloc_mutex_t prof_recent_dump_mtx;
      6  1.1  christos 
      7  1.1  christos bool prof_recent_alloc_prepare(tsd_t *tsd, prof_tctx_t *tctx);
      8  1.1  christos void prof_recent_alloc(tsd_t *tsd, edata_t *edata, size_t size, size_t usize);
      9  1.1  christos void prof_recent_alloc_reset(tsd_t *tsd, edata_t *edata);
     10  1.1  christos bool prof_recent_init(void);
     11  1.1  christos void edata_prof_recent_alloc_init(edata_t *edata);
     12  1.1  christos 
     13  1.1  christos /* Used in unit tests. */
     14  1.1  christos typedef ql_head(prof_recent_t) prof_recent_list_t;
     15  1.1  christos extern prof_recent_list_t prof_recent_alloc_list;
     16  1.1  christos edata_t *prof_recent_alloc_edata_get_no_lock_test(const prof_recent_t *node);
     17  1.1  christos prof_recent_t *edata_prof_recent_alloc_get_no_lock_test(const edata_t *edata);
     18  1.1  christos 
     19  1.1  christos ssize_t prof_recent_alloc_max_ctl_read(void);
     20  1.1  christos ssize_t prof_recent_alloc_max_ctl_write(tsd_t *tsd, ssize_t max);
     21  1.1  christos void prof_recent_alloc_dump(tsd_t *tsd, write_cb_t *write_cb, void *cbopaque);
     22  1.1  christos 
     23  1.1  christos #endif /* JEMALLOC_INTERNAL_PROF_RECENT_H */
     24