Closed
Bug 831133
Opened 12 years ago
Closed 12 years ago
Record only the basename
Categories
(Toolkit :: Telemetry, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: espindola, Assigned: espindola)
Details
Attachments
(1 file)
1.17 KB,
patch
|
vladan
:
review+
|
Details | Diff | Splinter Review |
https://tbpl.mozilla.org/?tree=Try&rev=78ab105e4c80
For the symbolication server we only want the basename, since this is what is used to store the .sym files. Unfortunately we have to do this is Telemetry for now an the current profiler plugin needs the full file name on OS X.
Attachment #702638 -
Flags: review?(vdjeric)
Comment 1•12 years ago
|
||
Comment on attachment 702638 [details] [diff] [review]
patch
> #ifdef MOZ_ENABLE_PROFILER_SPS
> for (unsigned i = 0, n = rawModules.GetSize(); i != n; ++i) {
> const SharedLibrary &info = rawModules.GetEntry(i);
>+ const std::string &name = info.GetName();
>+ size_t pos = name.rfind('/');
This works but how about #ifdef'ing XP_MACOSX around some of this logic and calling basename()?
>+ std::string basename;
>+ if (pos != std::string::npos)
>+ basename = name.substr(pos + 1);
>+ else
>+ basename = name;
Style rules say you need curlies for these
Attachment #702638 -
Flags: review?(vdjeric) → review+
Assignee | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•