Bug 1169411 - recording durations should be based off of profiler's end time in a performance recording. r=vp

This commit is contained in:
Jordan Santell 2015-05-28 13:59:12 -07:00
parent 4c19e737f7
commit 08234250ba

View File

@ -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