Closed Bug 1023018 Opened 11 years ago Closed 11 years ago

Make the framerate actor take 'start' and 'end' params for specifying a range when retrieving the refresh driver ticks

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 33

People

(Reporter: vporof, Assigned: vporof)

References

Details

Attachments

(1 file)

No description provided.
Blocks: 879008
Attached patch v1Splinter Review
This is needed to synchronize the profiler data time range with the framerate recording range, since any given profile only contains a fixed specified amount of most recent samples (which is pretty large, but enough to overflow after a few mintues), while the framerate actor just keeps on going without scraping off old data.
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Attachment #8437387 - Flags: review?(pbrosset)
Comment on attachment 8437387 [details] [diff] [review] v1 Review of attachment 8437387 [details] [diff] [review]: ----------------------------------------------------------------- looking good ::: toolkit/devtools/server/actors/framerate.js @@ +59,5 @@ > return []; > } > this._recording = false; > > // We don't need to store the ticks array for future use, release it. nit: this comment line should perhaps be moved just before 'this._ticks=null;' ::: toolkit/devtools/server/tests/mochitest/test_framerate_03.html @@ +47,5 @@ > + var front = FramerateFront(client, form); > + > + front.startRecording().then(() => { > + window.setTimeout(() => { > + front.stopRecording(START_TICK, STOP_TICK).then(rawData => { Should this test also be checking that using stopRecording() with no params returns the expected default values? (or perhaps test_framerate_01/02.html already do that)
Attachment #8437387 - Flags: review?(pbrosset) → review+
(In reply to Patrick Brosset [:pbrosset] [:patrick] from comment #2) > Comment on attachment 8437387 [details] [diff] [review] > v1 > > ::: toolkit/devtools/server/tests/mochitest/test_framerate_03.html > @@ +47,5 @@ > > + var front = FramerateFront(client, form); > > + > > + front.startRecording().then(() => { > > + window.setTimeout(() => { > > + front.stopRecording(START_TICK, STOP_TICK).then(rawData => { > > Should this test also be checking that using stopRecording() with no params > returns the expected default values? > (or perhaps test_framerate_01/02.html already do that) test_framerate_02 does that already.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 33
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: