diff options
author | Qi Wang <interwq@gwu.edu> | 2017-05-12 16:26:59 -0700 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-05-23 12:26:20 -0700 |
commit | 5f5ed2198e47f3e904cbf1aff7c124e196855272 (patch) | |
tree | aabc4168f63175667d18ad58b4b5082f947f3961 /src/mutex.c | |
parent | 2bee0c6251856f48ed6882df2f02a060c0a14829 (diff) | |
download | platform_external_jemalloc_new-5f5ed2198e47f3e904cbf1aff7c124e196855272.tar.gz platform_external_jemalloc_new-5f5ed2198e47f3e904cbf1aff7c124e196855272.tar.bz2 platform_external_jemalloc_new-5f5ed2198e47f3e904cbf1aff7c124e196855272.zip |
Add profiling for the background thread mutex.
Diffstat (limited to 'src/mutex.c')
-rw-r--r-- | src/mutex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mutex.c b/src/mutex.c index c92ddd72..48e2940a 100644 --- a/src/mutex.c +++ b/src/mutex.c @@ -112,6 +112,8 @@ label_spin_done: static void mutex_prof_data_init(mutex_prof_data_t *data) { memset(data, 0, sizeof(mutex_prof_data_t)); + nstime_init(&data->max_wait_time, 0); + nstime_init(&data->tot_wait_time, 0); data->prev_owner = NULL; } |