Treat postponed prof sample event as new event

This commit is contained in:
Yinan Zhang 2020-04-16 13:37:19 -07:00
parent abd4674931
commit 381c97caa4

View File

@ -563,7 +563,15 @@ prof_sample_new_event_wait(tsd_t *tsd) {
uint64_t uint64_t
prof_sample_postponed_event_wait(tsd_t *tsd) { prof_sample_postponed_event_wait(tsd_t *tsd) {
return TE_MIN_START_WAIT; /*
* The postponed wait time for prof sample event is computed as if we
* want a new wait time (i.e. as if the event were triggered). If we
* instead postpone to the immediate next allocation, like how we're
* handling the other events, then we can have sampling bias, if e.g.
* the allocation immediately following a reentrancy always comes from
* the same stack trace.
*/
return prof_sample_new_event_wait(tsd);
} }
int int