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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 25

People

(Reporter: fitzgen, Assigned: anton)

References

Details

Attachments

(1 file, 2 obsolete files)

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.
From IRC:

past: the profiler could just respect devtools.chrome.enabled like the rest of our tools
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
Depends on: 828038
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: nobody → anton
Status: NEW → ASSIGNED
Attachment #768073 - Flags: review?(rcampbell)
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)
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 :-)
(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.
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 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+
(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.
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
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: