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)
DevTools
Performance Tools (Profiler/Timeline)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 33
People
(Reporter: vporof, Assigned: vporof)
References
Details
Attachments
(1 file)
|
5.13 KB,
patch
|
pbro
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•11 years ago
|
||
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.
Comment 2•11 years ago
|
||
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+
| Assignee | ||
Comment 3•11 years ago
|
||
(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.
| Assignee | ||
Comment 4•11 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 33
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•