Bug 1391126 - Guard use of shared-libraries.h in HangStack.cpp behind MOZ_GECKO_PROFILER, r=froydnj

This commit is contained in:
Michael Layzell 2017-09-14 10:18:43 -04:00
Родитель f2d86a8b30
Коммит 3cb7b23c33
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1,5 +1,8 @@
#include "HangStack.h"
#ifdef MOZ_GECKO_PROFILER
#include "shared-libraries.h"
#endif
namespace mozilla {
@ -99,6 +102,7 @@ HangStack::ReadModuleInformation()
// mModules should be empty when we start filling it.
mModules.Clear();
#ifdef MOZ_GECKO_PROFILER
// Create a sorted list of the PCs in the current stack.
AutoTArray<Frame*, 100> frames;
for (auto& frame : *this) {
@ -155,6 +159,7 @@ HangStack::ReadModuleInformation()
mModules.AppendElement(module);
}
}
#endif
}
} // namespace mozilla