Closed
Bug 833495
Opened 11 years ago
Closed 11 years ago
Should have a pref to enable optional chrome gecko profiling
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect)
DevTools
Performance Tools (Profiler/Timeline)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 25
People
(Reporter: fitzgen, Assigned: anton)
References
Details
Attachments
(1 file, 2 obsolete files)
15.70 KB,
patch
|
rcampbell
:
review+
|
Details | Diff | Splinter Review |
Should have a pref that defaults to false, but when true allows the user to choose whether they want to show chrome stuff in the profiler. Basically the same way that you can flip the pref to get the option to run the scratchpad in the chrome environment.
Reporter | ||
Comment 1•11 years ago
|
||
From IRC: past: the profiler could just respect devtools.chrome.enabled like the rest of our tools
Comment 2•11 years ago
|
||
I think I'd prefer to have a piece of UI to control those. I think devtools.chrome.enabled is too greedy, i.e., we'll show too much when a user doesn't necessarily want to see it. We show results from chrome js now. I think we should change this to allow the profiler to show data from gecko platform instead -- disable JS-only flag.
OS: Mac OS X → All
Hardware: x86 → All
Summary: Should have a pref to enable optional chrome profiling → Should have a pref to enable optional chrome gecko profiling
Assignee | ||
Comment 3•11 years ago
|
||
This patch depends on a patch from bug 828038, make sure to apply that one first. I added a gear button just like in the debugger. Right now it has only one option (this one) but in future we will probably add more.
Assignee | ||
Comment 4•11 years ago
|
||
Added this nice blue glow just like in the debugger.
Attachment #768073 -
Attachment is obsolete: true
Attachment #768073 -
Flags: review?(rcampbell)
Attachment #768081 -
Flags: review?(rcampbell)
Comment 5•11 years ago
|
||
We will be moving the debugger options to the options panel in bug 879408, so maybe you could be a little avant-garde and put profiler options there right away :-)
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Panos Astithas [:past] from comment #5) > We will be moving the debugger options to the options panel in bug 879408, > so maybe you could be a little avant-garde and put profiler options there > right away :-) Makes sense, will do.
Assignee | ||
Comment 7•11 years ago
|
||
Moved the option into a shared Options tab per Panos' suggestion.
Attachment #768081 -
Attachment is obsolete: true
Attachment #768081 -
Flags: review?(rcampbell)
Attachment #770376 -
Flags: review?(rcampbell)
Comment 8•11 years ago
|
||
Comment on attachment 770376 [details] [diff] [review] Add an option to show Gecko platform data in the Profiler Review of attachment 770376 [details] [diff] [review]: ----------------------------------------------------------------- looks fine. ::: browser/app/profile/firefox.js @@ +1092,5 @@ > // Enable the Profiler > pref("devtools.profiler.enabled", true); > > +// The default Profiler UI settings > +pref("devtools.profiler.ui.show-platform-data", false); not the same as "chrome-enabled". ::: browser/devtools/profiler/cleopatra/js/devtools.js @@ +14,5 @@ > + > + query.split("&").forEach(function (pair) { > + pair = pair.split("="); > + gParsedQS[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]); > + }); cute. But I wouldn't call it beautiful.
Attachment #770376 -
Flags: review?(rcampbell) → review+
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Rob Campbell [:rc] (:robcee) from comment #8) > Comment on attachment 770376 [details] [diff] [review] > Add an option to show Gecko platform data in the Profiler > > Review of attachment 770376 [details] [diff] [review]: > ----------------------------------------------------------------- > > looks fine. > > ::: browser/app/profile/firefox.js > @@ +1092,5 @@ > > // Enable the Profiler > > pref("devtools.profiler.enabled", true); > > > > +// The default Profiler UI settings > > +pref("devtools.profiler.ui.show-platform-data", false); > > not the same as "chrome-enabled". That's intentional. We already display chrome JavaScript data so using that flag would be misleading.
Assignee | ||
Comment 10•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/7a3cbd26d3d0
Whiteboard: [fixed-in-fx-team]
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7a3cbd26d3d0
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 25
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•