mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-28 11:23:08 +03:00
Pass write callback explicitly in prof_data
This commit is contained in:
parent
4556d3c0c8
commit
1f5fe3a3e3
4 changed files with 84 additions and 54 deletions
|
|
@ -87,7 +87,8 @@ TEST_END
|
|||
bool prof_dump_header_intercepted = false;
|
||||
prof_cnt_t cnt_all_copy = {0, 0, 0, 0};
|
||||
static void
|
||||
prof_dump_header_intercept(tsdn_t *tsdn, const prof_cnt_t *cnt_all) {
|
||||
prof_dump_header_intercept(tsdn_t *tsdn, write_cb_t *cb, void *cbopaque,
|
||||
const prof_cnt_t *cnt_all) {
|
||||
prof_dump_header_intercepted = true;
|
||||
memcpy(&cnt_all_copy, cnt_all, sizeof(prof_cnt_t));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue