Closed
Bug 854810
Opened 11 years ago
Closed 11 years ago
Use shared-libraries-*.cc instead of home-grown equivalents
Categories
(Core :: Gecko Profiler, defect)
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: jseward, Assigned: jseward)
References
Details
Attachments
(1 file)
6.17 KB,
patch
|
BenWa
:
review+
|
Details | Diff | Splinter Review |
Bug 779291 inadvertantly duplicated some functionality from tools/profiler/shared-libraries.cc. This patch removes that duplication.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → jseward
Attachment #729438 -
Flags: review?(bgirard)
Comment 2•11 years ago
|
||
Comment on attachment 729438 [details] [diff] [review] Patch Review of attachment 729438 [details] [diff] [review]: ----------------------------------------------------------------- ::: tools/profiler/UnwinderThread2.cpp @@ +1402,5 @@ > + SharedLibraryInfo info = SharedLibraryInfo::GetInfoForSelf(); > + for (size_t i = 0; i < info.GetSize(); i++) { > + const SharedLibrary& lib = info.GetEntry(i); > + // On Linux, this pulls out two mappings with no names: the VDSO > + // (understandable but harmless), and the main executable (bad). Why is the main executable bad? If we can reason about these segments being misleading we can modify SharedLibraryInfo to not include them. This code is only used for symbolication and is shared between the profiler and Telemetry.
Attachment #729438 -
Flags: review?(bgirard) → review+
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Benoit Girard (:BenWa) from comment #2) > Why is the main executable bad? I meant only that it's bad that shared-libraries.cc produces a mapping with no name for the main executable, since that means we breakpad won't be able to read CFI for it, so we won't be able to unwind into it. I don't think it matters much -- it's just an annoying inconsistency.
Comment 4•11 years ago
|
||
I'll look into modifying the symbolication script to avoid empty name libraries.
Assignee | ||
Comment 5•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b5c4adef1523
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b5c4adef1523
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in
before you can comment on or make changes to this bug.
Description
•