Closed Bug 1246884 Opened 9 years ago Closed 7 years ago

The time-framerate graph does not hide if its option is disabled

Categories

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

defect

Tracking

(firefox44 affected, firefox45 affected, firefox46 affected, firefox47 affected, firefox-esr38 unaffected)

RESOLVED WONTFIX
Tracking Status
firefox44 --- affected
firefox45 --- affected
firefox46 --- affected
firefox47 --- affected
firefox-esr38 --- unaffected

People

(Reporter: magicp.jp, Unassigned)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0 Build ID: 20160208030244 Steps to reproduce: 1. Start any versions Firefox with new profile 2. Open Devtools > Performance 3. Check off "Record Framerate" option 4. Start and Stop recording performance Actual results: time-framerate is displayed and overlapped into detail-pane. Probably, hidden class does not enable. Expected results: time-framerate should be hidden if its option is disabled.
STR > 1. Start any versions Firefox with new profile > 2. Open Devtools > Performance + Start and Stop recording performance > 3. Check off "Record Framerate" option > 4. Start and Stop recording performance
Has STR: --- → yes
Component: Untriaged → Developer Tools: Performance Tools (Profiler/Timeline)
OS: Unspecified → All
Hardware: Unspecified → All
Has Regression Range: --- → yes
Flags: needinfo?(bgrinstead)
It's because there's a display flex set on a parent element which also has the 'hidden' class applied: https://hg.mozilla.org/integration/fx-team/rev/1e64ee0dc934#l2.19
Flags: needinfo?(bgrinstead)
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Comment on attachment 8720361 [details] MozReview Request: Bug 1246884 - Make sure hidden graphs display isn't overridden by Graphs.js;r=vporof https://reviewboard.mozilla.org/r/35277/#review32411 ::: devtools/client/performance/test/browser_perf-options-enable-framerate.js:18 (Diff revision 1) > + "PerformanceFront started with ticks recording."); Please put this into a new test. Starting and stopping a recording is notoriously heavy on try servers, and tests frequently time out if there's too much profiler action going on.
Attachment #8720361 - Flags: review?(vporof) → review+
Should land this, maybe? Ping :bgrins.
Priority: -- → P2
Summary: [DevTools][Performance] time-framerate does not hide if its option is disabled → The time-framerate graph does not hide if its option is disabled
Comment on attachment 8720361 [details] MozReview Request: Bug 1246884 - Make sure hidden graphs display isn't overridden by Graphs.js;r=vporof Review request updated; see interdiff: https://reviewboard.mozilla.org/r/35277/diff/1-2/
Looks like it's been split into two tests in the meantime, let me know if you want this to be a third or if it's OK where I put it
https://reviewboard.mozilla.org/r/35277/#review37751 ::: devtools/client/performance/test/browser_perf-options-enable-framerate-01.js:26 (Diff revision 2) > > let { $, PerformanceController } = panel.panelWin; > > + // Start with default framerate setting (visible) > + yield startRecording(panel); > + yield stopRecording(panel); This test already starts/stops recording twice. Adding another third recording will likely cause this to intermittently time out on slow hardware and debug builds. Please create a new test :(
Comment on attachment 8720361 [details] MozReview Request: Bug 1246884 - Make sure hidden graphs display isn't overridden by Graphs.js;r=vporof Review request updated; see interdiff: https://reviewboard.mozilla.org/r/35277/diff/2-3/
That try run isn't very happy looking :(
Huh... seems like running getComputedStyle on element in the test helper is causing exceptions to happen in the frontend, specifically this stack trace which is pointing to a place where the font is set on a canvas context (https://dxr.mozilla.org/mozilla-central/source/devtools/client/performance/modules/widgets/markers-overview.js#169): 30 INFO TEST-UNEXPECTED-FAIL | devtools/client/performance/test/browser_perf-overview-render-04.js | A promise chain failed to handle a rejection: - at resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/performance/modules/widgets/markers-overview.js:169 - Stack trace: JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/performance/modules/widgets/markers-overview.js :: MarkersOverview.prototype<.buildGraphImage :: line 169 JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/shared/widgets/Graphs.js :: AbstractCanvasGraph.prototype.setData :: line 287 JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/performance/modules/widgets/graphs.js :: GraphsController.prototype.render< :: line 224 JS frame :: resource://gre/modules/Task.jsm :: TaskImpl_run :: line 319 JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: Handler.prototype.process :: line 937 JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.walkerLoop :: line 816
Blocks: perf-bug
Assignee: bgrinstead → nobody
Status: ASSIGNED → NEW
I'm going to close this bug to reflect reality. The new perf tool is being merged into the toolbox (tracked in Bug 1418044), so this won't get fixed.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
> I'm going to close this bug to reflect reality. The new perf tool is being merged into the toolbox (tracked in Bug 1418044), so this won't get fixed. Just don't set your expectations to high: we're merging the perf tool but keeping it hidden behind a pref. We still have quite a few things to do before replacing the current perf tool and I'm still not sure how high a priority this will be next year.
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: