diff options
author | Jason Evans <je@fb.com> | 2014-01-17 23:40:52 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2014-01-17 23:40:52 (GMT) |
commit | 772163b4f3d8e9a12343e9215f6b070068507604 (patch) | |
tree | fca7a4cfaad0ba53a836ea57f12b5e9f1935d4a1 /include | |
parent | eefdd02e70ec1b9cf11920fcff585835dcbd766b (diff) | |
download | jemalloc-772163b4f3d8e9a12343e9215f6b070068507604.zip jemalloc-772163b4f3d8e9a12343e9215f6b070068507604.tar.gz jemalloc-772163b4f3d8e9a12343e9215f6b070068507604.tar.bz2 |
Add heap profiling tests.
Fix a regression in prof_dump_ctx() due to an uninitized variable. This
was caused by revision 4f37ef693e3d5903ce07dc0b61c0da320b35e3d9, so no
releases are affected.
Diffstat (limited to 'include')
-rw-r--r-- | include/jemalloc/internal/private_symbols.txt | 2 | ||||
-rw-r--r-- | include/jemalloc/internal/prof.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/jemalloc/internal/private_symbols.txt b/include/jemalloc/internal/private_symbols.txt index 6cc811d..1e64ed5 100644 --- a/include/jemalloc/internal/private_symbols.txt +++ b/include/jemalloc/internal/private_symbols.txt @@ -288,8 +288,10 @@ prof_backtrace prof_boot0 prof_boot1 prof_boot2 +prof_bt_count prof_ctx_get prof_ctx_set +prof_dump_open prof_free prof_gdump prof_idump diff --git a/include/jemalloc/internal/prof.h b/include/jemalloc/internal/prof.h index 566739b..db056fc 100644 --- a/include/jemalloc/internal/prof.h +++ b/include/jemalloc/internal/prof.h @@ -225,6 +225,11 @@ extern bool prof_promote; void bt_init(prof_bt_t *bt, void **vec); void prof_backtrace(prof_bt_t *bt, unsigned nignore); prof_thr_cnt_t *prof_lookup(prof_bt_t *bt); +#ifdef JEMALLOC_JET +size_t prof_bt_count(void); +typedef int (prof_dump_open_t)(bool, const char *); +extern prof_dump_open_t *prof_dump_open; +#endif void prof_idump(void); bool prof_mdump(const char *filename); void prof_gdump(void); |