Closed
Bug 919078
Opened 11 years ago
Closed 11 years ago
Improve async profiler startup feature list
Categories
(Core :: Gecko Profiler, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: jld, Assigned: jld)
References
Details
(Keywords: perf, Whiteboard: [c=profiling p= s= u=])
Attachments
(1 file, 1 obsolete file)
1.15 KB,
patch
|
BenWa
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Starting the profiler asynchronously will be more useful if more features are enabled; in particular, "js" and "stackwalk" (or "leaf" on platforms where stack walking isn't available) are ones that I predict most users of the profiler will expect, and which the existing profiler-start-on-startup mechanism enables.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #808053 -
Flags: review?(bgirard)
Comment 2•11 years ago
|
||
Comment on attachment 808053 [details] [diff] [review]
bug919078-async-profile-start-features-hg0.diff
Review of attachment 808053 [details] [diff] [review]:
-----------------------------------------------------------------
::: tools/profiler/platform-linux.cc
@@ +447,5 @@
> uint32_t featureCount = 0;
> + features[featureCount++] = "js";
> +#if defined(SPS_ARCH_arm)
> + // cf. the #if in mozilla_sampler_init
> + features[featureCount++] = "stackwalk";
Does stackwalk work well enough for it to be on by default? Last I tried it wasn't that great but maybe I wasn't lucky. If it works well enough I guess it's fine.
I was expecting we'd modify profiler.options so that we can use profile.sh start <pid> <thread name> <options> or something like that.
Comment 3•11 years ago
|
||
Comment on attachment 808053 [details] [diff] [review]
bug919078-async-profile-start-features-hg0.diff
Waiting for info to review the patch
Attachment #808053 -
Flags: review?(bgirard)
Updated•11 years ago
|
Flags: needinfo?(jld)
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Benoit Girard (:BenWa) from comment #2)
> Comment on attachment 808053 [details] [diff] [review]
> bug919078-async-profile-start-features-hg0.diff
>
> Review of attachment 808053 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: tools/profiler/platform-linux.cc
> @@ +447,5 @@
> > uint32_t featureCount = 0;
> > + features[featureCount++] = "js";
> > +#if defined(SPS_ARCH_arm)
> > + // cf. the #if in mozilla_sampler_init
> > + features[featureCount++] = "stackwalk";
>
> Does stackwalk work well enough for it to be on by default? Last I tried it
> wasn't that great but maybe I wasn't lucky. If it works well enough I guess
> it's fine.
It's been working pretty well on MOZ_PROFILING=1 builds of b2g. (Non-profiling builds can't unwind Gecko, but they will unwind Gonk.)
But... is ARM the right conditional for this? The unwinder from bug 810526 is currently enabled only for B2G, but I don't really want to duplicate those ifdefs more than they already are if I don't have to.
Flags: needinfo?(jld)
Comment 5•11 years ago
|
||
From our standup we discussed that fixing this would enable javascript in profiles when capturing a specific PID. We would *really* like to have this.
Comment 6•11 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #5)
> From our standup we discussed that fixing this would enable javascript in
> profiles when capturing a specific PID. We would *really* like to have this.
Actually *please* just change the default for now and don't block on this:
http://mxr.mozilla.org/mozilla-central/source/tools/profiler/platform-linux.cc#471
extends features by one and hardcode "js" unconditionally. This is an omission. Such a patch will get my r+. I had this change locally a few weeks ago but I forgot to land it.
Assignee | ||
Comment 7•11 years ago
|
||
Add JS for now. This bug should stay open until stack walk is turned on, and I think we want bug 916106 to land before that.
Attachment #816054 -
Flags: review?(bgirard)
Updated•11 years ago
|
Attachment #816054 -
Flags: review?(bgirard) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #808053 -
Attachment is obsolete: true
Assignee | ||
Comment 8•11 years ago
|
||
Checkin note: for b2g-inbound, and the other half of the original patch will be landable relatively soon (I hope), so either leave open or tell me I should clone the bug instead.
Assignee | ||
Comment 9•11 years ago
|
||
(Mid-air collision with myself. It's definitely Friday.)
Keywords: checkin-needed
Comment 10•11 years ago
|
||
my general rule if the patch are independent and there's a chance one but not both to be backed out or cause a regression its easier having two bugs. When in doubt split the bugs.
Comment 11•11 years ago
|
||
Keywords: checkin-needed
Comment 12•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Updated•11 years ago
|
Whiteboard: [c=profiling p= s=2013.10.18 u=] → [c=profiling p= s= u=]
Assignee | ||
Updated•11 years ago
|
status-b2g-v1.2:
--- → affected
status-firefox26:
--- → affected
Assignee | ||
Comment 13•11 years ago
|
||
Comment on attachment 816054 [details] [diff] [review]
add js to async profiler start options
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 914815
User impact if declined: Developers using async profiler startup won't see JS stack frames. (No impact on end users.) I'm in a meeting with developers complaining about not having this on b2g 1.2 as I type this, in fact.
Testing completed (on m-c, etc.): It's been on m-c for a few days, and I've successfully used it.
Risk to taking this patch (and alternatives if risky): Low risk for developers, and no risk for end users.
String or IDL/UUID changes made by this patch: None.
Attachment #816054 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #816054 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 14•11 years ago
|
||
status-firefox25:
--- → wontfix
status-firefox27:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•