diff options
author | Qi Wang <interwq@gwu.edu> | 2017-05-12 23:26:59 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-05-23 19:26:20 (GMT) |
commit | 5f5ed2198e47f3e904cbf1aff7c124e196855272 (patch) | |
tree | aabc4168f63175667d18ad58b4b5082f947f3961 /include | |
parent | 2bee0c6251856f48ed6882df2f02a060c0a14829 (diff) | |
download | jemalloc-5f5ed2198e47f3e904cbf1aff7c124e196855272.zip jemalloc-5f5ed2198e47f3e904cbf1aff7c124e196855272.tar.gz jemalloc-5f5ed2198e47f3e904cbf1aff7c124e196855272.tar.bz2 |
Add profiling for the background thread mutex.
Diffstat (limited to 'include')
-rw-r--r-- | include/jemalloc/internal/mutex_externs.h | 12 | ||||
-rw-r--r-- | include/jemalloc/internal/mutex_prof.h | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/include/jemalloc/internal/mutex_externs.h b/include/jemalloc/internal/mutex_externs.h index c9a817f..d0139f2 100644 --- a/include/jemalloc/internal/mutex_externs.h +++ b/include/jemalloc/internal/mutex_externs.h @@ -10,12 +10,12 @@ extern bool isthreaded; # define isthreaded true #endif -bool malloc_mutex_init(malloc_mutex_t *mutex, const char *name, +bool malloc_mutex_init(malloc_mutex_t *mutex, const char *name, witness_rank_t rank, malloc_mutex_lock_order_t lock_order); -void malloc_mutex_prefork(tsdn_t *tsdn, malloc_mutex_t *mutex); -void malloc_mutex_postfork_parent(tsdn_t *tsdn, malloc_mutex_t *mutex); -void malloc_mutex_postfork_child(tsdn_t *tsdn, malloc_mutex_t *mutex); -bool malloc_mutex_boot(void); -void malloc_mutex_prof_data_reset(tsdn_t *tsdn, malloc_mutex_t *mutex); +void malloc_mutex_prefork(tsdn_t *tsdn, malloc_mutex_t *mutex); +void malloc_mutex_postfork_parent(tsdn_t *tsdn, malloc_mutex_t *mutex); +void malloc_mutex_postfork_child(tsdn_t *tsdn, malloc_mutex_t *mutex); +bool malloc_mutex_boot(void); +void malloc_mutex_prof_data_reset(tsdn_t *tsdn, malloc_mutex_t *mutex); #endif /* JEMALLOC_INTERNAL_MUTEX_EXTERNS_H */ diff --git a/include/jemalloc/internal/mutex_prof.h b/include/jemalloc/internal/mutex_prof.h index 1cc198d..3358bcf 100644 --- a/include/jemalloc/internal/mutex_prof.h +++ b/include/jemalloc/internal/mutex_prof.h @@ -6,6 +6,7 @@ #include "jemalloc/internal/tsd_types.h" #define MUTEX_PROF_GLOBAL_MUTEXES \ + OP(background_thread) \ OP(ctl) \ OP(prof) |