mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1169411 - recording durations should be based off of profiler's end time in a performance recording. r=vp
This commit is contained in:
parent
4c19e737f7
commit
08234250ba
@ -133,8 +133,11 @@ RecordingModel.prototype = {
|
||||
* Sets results available from stopping a recording from SharedPerformanceConnection.
|
||||
* Should only be called by SharedPerformanceConnection.
|
||||
*/
|
||||
_onStopRecording: Task.async(function *(info) {
|
||||
this._profile = info.profile;
|
||||
_onStopRecording: Task.async(function *({ profilerEndTime, profile }) {
|
||||
// Update the duration with the accurate profilerEndTime, so we don't have
|
||||
// samples outside of the approximate duration set in `_onStoppingRecording`.
|
||||
this._duration = profilerEndTime - this._profilerStartTime;
|
||||
this._profile = profile;
|
||||
this._completed = true;
|
||||
|
||||
// We filter out all samples that fall out of current profile's range
|
||||
|
Loading…
Reference in New Issue
Block a user