mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 831133 - Record only the basename. r=vladan.
This commit is contained in:
parent
3c03d12c55
commit
0cdb0a43d3
@ -2245,8 +2245,19 @@ GetStackAndModules(const std::vector<uintptr_t>& aPCs)
|
||||
#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();
|
||||
std::string basename = name;
|
||||
#ifdef XP_MACOSX
|
||||
// FIXME: We want to use just the basename as the libname, but the
|
||||
// current profiler addon needs the full path name, so we compute the
|
||||
// basename in here.
|
||||
size_t pos = name.rfind('/');
|
||||
if (pos != std::string::npos) {
|
||||
basename = name.substr(pos + 1);
|
||||
}
|
||||
#endif
|
||||
ProcessedStack::Module module = {
|
||||
info.GetName(),
|
||||
basename,
|
||||
info.GetBreakpadId()
|
||||
};
|
||||
Ret.AddModule(module);
|
||||
|
Loading…
Reference in New Issue
Block a user