mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 929763: Don't call TickSample::PopulateContext unless native stack walking is enabled; r=BenWa
This commit is contained in:
parent
bf9a6e83f1
commit
4ff2db0e59
@ -620,11 +620,13 @@ SyncProfile* TableTicker::GetBacktrace()
|
||||
TickSample sample;
|
||||
sample.threadProfile = profile;
|
||||
|
||||
#if defined(HAVE_NATIVE_UNWIND)
|
||||
#if defined(XP_WIN) || defined(LINUX)
|
||||
tickcontext_t context;
|
||||
sample.PopulateContext(&context);
|
||||
#elif defined(XP_MACOSX)
|
||||
sample.PopulateContext(nullptr);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
sample.isSamplingCurrentThread = true;
|
||||
|
Loading…
Reference in New Issue
Block a user