mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-08 23:07:20 +03:00
[thread_event] Add support for user events in thread events when stats are enabled
This commit is contained in:
parent
e6864c6075
commit
015b017973
15 changed files with 470 additions and 81 deletions
10
src/prof.c
10
src/prof.c
|
|
@ -306,11 +306,6 @@ prof_sample_event_handler(tsd_t *tsd) {
|
|||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
prof_sample_enabled(void) {
|
||||
return config_prof && opt_prof;
|
||||
}
|
||||
|
||||
uint64_t
|
||||
tsd_prof_sample_event_wait_get(tsd_t *tsd) {
|
||||
#ifdef JEMALLOC_PROF
|
||||
|
|
@ -321,6 +316,11 @@ tsd_prof_sample_event_wait_get(tsd_t *tsd) {
|
|||
#endif
|
||||
}
|
||||
|
||||
static te_enabled_t
|
||||
prof_sample_enabled(void) {
|
||||
return config_prof && opt_prof ? te_enabled_yes : te_enabled_no;
|
||||
}
|
||||
|
||||
te_base_cb_t prof_sample_te_handler = {
|
||||
.enabled = &prof_sample_enabled,
|
||||
.new_event_wait = &prof_sample_new_event_wait,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue