Closed
Bug 1168784
Opened 9 years ago
Closed 9 years ago
[B2G] Update profile for the new profile json file format
Categories
(Core :: Gecko Profiler, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: wcosta, Assigned: ting)
References
Details
Attachments
(2 files)
Bug 1154115 changed the json file format for profile data.
Reporter | ||
Updated•9 years ago
|
OS: Unspecified → Gonk (Firefox OS)
Hardware: Unspecified → All
Version: unspecified → Trunk
Comment 1•9 years ago
|
||
What's this with regard to? Update which profile? Any additional information necessary for the dev tools team?
Comment 2•9 years ago
|
||
I believe this is about the profile.sh script in the B2G repository, with the relevant code here:
https://github.com/mozilla-b2g/B2G/blob/master/scripts/profile-symbolicate.py
Instructions for profile.sh are here:
https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Profiling_with_the_Built-in_Profiler#Profiling_Boot_to_Gecko_%28with_a_real_device%29
https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Profiling_Tutorial
Assignee | ||
Comment 3•9 years ago
|
||
Also need to update: https://hg.mozilla.org/mozilla-central/file/f986e55c4e0b/tools/profiler/merge-profiles.py
I'll take it if no one is working on this.
Comment 4•9 years ago
|
||
(In reply to Ting-Yu Chou [:ting] from comment #3)
> Also need to update:
> https://hg.mozilla.org/mozilla-central/file/f986e55c4e0b/tools/profiler/
> merge-profiles.py
>
> I'll take it if no one is working on this.
Great! I have not started on anything yet. Shu pointed out the new format is documented in the ProfileEntry header [1].
I believe all we need to do is process the |stringTable| array. Also we'll want to maintain backwards compatibility (the meta.version was bumped from 2 to 3, so this is easy to detect).
[1] https://dxr.mozilla.org/mozilla-central/source/tools/profiler/ProfileEntry.h#271-362
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Eric Rahm [:erahm] from comment #4)
> I believe all we need to do is process the |stringTable| array. Also we'll
> want to maintain backwards compatibility (the meta.version was bumped from 2
> to 3, so this is easy to detect).
Thanks for reminding, I'll do it on Monday :)
Assignee: nobody → janus926
Status: NEW → ASSIGNED
Comment 6•9 years ago
|
||
(In reply to Eric Rahm [:erahm] from comment #4)
> (In reply to Ting-Yu Chou [:ting] from comment #3)
> > Also need to update:
> > https://hg.mozilla.org/mozilla-central/file/f986e55c4e0b/tools/profiler/
> > merge-profiles.py
> >
> > I'll take it if no one is working on this.
>
> Great! I have not started on anything yet. Shu pointed out the new format is
> documented in the ProfileEntry header [1].
>
> I believe all we need to do is process the |stringTable| array. Also we'll
> want to maintain backwards compatibility (the meta.version was bumped from 2
> to 3, so this is easy to detect).
If all you care about is symbolication of 0xF00 address, then yeah, looks like stringTable is all you need. May speed it up too, since the table is of unique strings only.
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8613466 -
Flags: review?(bgirard)
Assignee | ||
Comment 8•9 years ago
|
||
Attachment #8613467 -
Flags: review?(dhylands)
Updated•9 years ago
|
Attachment #8613466 -
Flags: review?(bgirard) → review+
Comment 9•9 years ago
|
||
Comment on attachment 8613467 [details]
Part 2: Fix the script searching unresolved addresses to handle new profiler JSON format
Looks good to me. I like the use of a generator (I didn't know about those when I wrote the original code)
Attachment #8613467 -
Flags: review?(dhylands) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Keywords: checkin-needed
Comment 12•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Reporter | ||
Updated•9 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•