Do not reset sample wait time when re-initing tdata

This commit is contained in:
Yinan Zhang 2020-03-23 14:58:33 -07:00
parent 855d20f6f3
commit 1e2524e15a
3 changed files with 4 additions and 8 deletions

View file

@ -1245,7 +1245,7 @@ prof_bt_keycomp(const void *k1, const void *k2) {
prof_tdata_t *
prof_tdata_init_impl(tsd_t *tsd, uint64_t thr_uid, uint64_t thr_discrim,
char *thread_name, bool active, bool reset_interval) {
char *thread_name, bool active) {
assert(tsd_reentrancy_level_get(tsd) == 0);
prof_tdata_t *tdata;
@ -1274,10 +1274,6 @@ prof_tdata_init_impl(tsd_t *tsd, uint64_t thr_uid, uint64_t thr_discrim,
return NULL;
}
if (reset_interval) {
prof_sample_threshold_update(tsd);
}
tdata->enq = false;
tdata->enq_idump = false;
tdata->enq_gdump = false;