Expose prof_data testing internals only in prof tests

This commit is contained in:
Yinan Zhang
2020-03-31 10:13:55 -07:00
parent f43ac8543e
commit 8118056c03
6 changed files with 16 additions and 6 deletions
+8
View File
@@ -19,4 +19,12 @@ void bt_init(prof_bt_t *bt, void **vec);
void prof_backtrace(tsd_t *tsd, prof_bt_t *bt);
void prof_tctx_try_destroy(tsd_t *tsd, prof_tctx_t *tctx);
/* Used in unit tests. */
size_t prof_tdata_count(void);
size_t prof_bt_count(void);
typedef void (prof_dump_header_t)(tsdn_t *, const prof_cnt_t *);
extern prof_dump_header_t *JET_MUTABLE prof_dump_header;
void prof_cnt_all(uint64_t *curobjs, uint64_t *curbytes, uint64_t *accumobjs,
uint64_t *accumbytes);
#endif /* JEMALLOC_INTERNAL_PROF_DATA_H */