mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 18:17:19 +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
|
|
@ -2141,9 +2141,9 @@ stats_interval_event_handler(tsd_t *tsd) {
|
|||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
static te_enabled_t
|
||||
stats_interval_enabled(void) {
|
||||
return opt_stats_interval >= 0;
|
||||
return opt_stats_interval >= 0 ? te_enabled_yes : te_enabled_no;
|
||||
}
|
||||
|
||||
te_base_cb_t stats_interval_te_handler = {
|
||||
|
|
@ -2153,7 +2153,6 @@ te_base_cb_t stats_interval_te_handler = {
|
|||
.event_handler = &stats_interval_event_handler,
|
||||
};
|
||||
|
||||
|
||||
bool
|
||||
stats_boot(void) {
|
||||
uint64_t stats_interval;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue