mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-13 20:27:23 +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
|
|
@ -27,7 +27,7 @@ prof_threshold_hook_get(void) {
|
|||
}
|
||||
|
||||
/* Invoke callback for threshold reached */
|
||||
static void
|
||||
static inline void
|
||||
prof_threshold_update(tsd_t *tsd) {
|
||||
prof_threshold_hook_t prof_threshold_hook = prof_threshold_hook_get();
|
||||
if (prof_threshold_hook == NULL) {
|
||||
|
|
@ -56,9 +56,9 @@ prof_threshold_event_handler(tsd_t *tsd) {
|
|||
prof_threshold_update(tsd);
|
||||
}
|
||||
|
||||
static bool
|
||||
static te_enabled_t
|
||||
prof_threshold_enabled(void) {
|
||||
return config_stats;
|
||||
return config_stats ? te_enabled_yes : te_enabled_no;
|
||||
}
|
||||
|
||||
te_base_cb_t prof_threshold_te_handler = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue