Make prof_idump_accum() non-inline

This commit is contained in:
Yinan Zhang
2020-04-15 12:13:22 -07:00
parent 039bfd4e30
commit e10e5059e8
3 changed files with 6 additions and 15 deletions

View File

@@ -649,9 +649,13 @@ prof_accum_init(void) {
}
bool
prof_idump_accum_impl(tsdn_t *tsdn, uint64_t accumbytes) {
prof_idump_accum(tsdn_t *tsdn, uint64_t accumbytes) {
cassert(config_prof);
if (prof_interval == 0 || !prof_active_get_unlocked()) {
return false;
}
return counter_accum(tsdn, &prof_idump_accumulated, accumbytes);
}