Closed Bug 960350 Opened 10 years ago Closed 10 years ago

Merged B2G profiles should display untranslated addresses correctly

Categories

(Core :: Gecko Profiler, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: jld, Assigned: jld)

Details

Attachments

(1 file)

If some of the addresses in a B2G profiles aren't translated, the merging script will prepend the pid (formatted with %05d) but not include a translation back to the original non-disambiguated name, so it will show up in Cleopatra as "031760x403108e4" or similar, which is confusing.
I also changed the address disambiguation to set off the pid with a colon.  (Originally I was going to do just that, but then I realized I could hide the (redundant) pid entirely.)  It probably doesn't matter now that the result isn't shown to the user, but it also shouldn't hurt.  (And the field with of 5 might be obsolete someday.)
Attachment #8360781 - Flags: review?(bgirard)
I wonder if the merge script should just convert into some lib+offset format instead and then everything can be simplier. Something like libxul.so+0x1234. I believe the profiler uses to do that but we change it and I feel like its a big mistake now. We went away from that and stored absolute address + the shared library map because with that we can include some version hash (used only on windows ATM). May now is the right time to backup on this mistake. What do you think?
Attachment #8360781 - Flags: review?(bgirard) → review+
(In reply to Benoit Girard (:BenWa) from comment #2)
> I wonder if the merge script should just convert into some lib+offset format
> instead and then everything can be simplier. Something like
> libxul.so+0x1234. I believe the profiler uses to do that but we change it
> and I feel like its a big mistake now. We went away from that and stored
> absolute address + the shared library map because with that we can include
> some version hash (used only on windows ATM). May now is the right time to
> backup on this mistake. What do you think?

The problem there is that we're currently running the merge script after symbolication, so addresses that are within a library have already been mapped to names.  Redoing the conversion into lib+offset at this point seems not very helpful.
https://hg.mozilla.org/mozilla-central/rev/dbaedf87a3cf
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: