зеркало из https://github.com/mozilla/gecko-dev.git
Bug 816117 - Part 3: Only get control registers from the profiled thread. r=bgirard
This commit is contained in:
Родитель
a60a6c0bfe
Коммит
22f1ab7082
|
@ -125,7 +125,7 @@ class SamplerThread : public Thread {
|
|||
if (SuspendThread(profiled_thread) == kSuspendFailed)
|
||||
return;
|
||||
|
||||
context.ContextFlags = CONTEXT_FULL;
|
||||
context.ContextFlags = CONTEXT_CONTROL;
|
||||
if (GetThreadContext(profiled_thread, &context) != 0) {
|
||||
#if V8_HOST_ARCH_X64
|
||||
sample->pc = reinterpret_cast<Address>(context.Rip);
|
||||
|
|
Загрузка…
Ссылка в новой задаче