mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1922494 - Profiler markers inserted by performance.measure should use an unclamped value when no end value is submitted r=sefeng
A clamped value was used incorrectly when no end timestamp or end mark was given by the caller. Differential Revision: https://phabricator.services.mozilla.com/D224455
This commit is contained in:
parent
2c18a8608a
commit
0ebcc934a6
@ -524,6 +524,9 @@ DOMHighResTimeStamp Performance::ResolveEndTimeForMeasure(
|
||||
}
|
||||
|
||||
endTime = start + duration;
|
||||
} else if (aReturnUnclamped) {
|
||||
MOZ_DIAGNOSTIC_ASSERT(profiler_thread_is_being_profiled_for_markers());
|
||||
endTime = NowUnclamped();
|
||||
} else {
|
||||
endTime = Now();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user