зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1365309 - Part 3: Reduce expected frame count for GeckoProfiler.SuspendAndSample, r=njn
This is necessary as with FramePointerStackWalk if the current frame is in glibc when we suspend the target thread we sometimes can't collect more than one native frame as there are no frame pointers. We'll still collect at least one entry, so this check relaxes the assertion. MozReview-Commit-ID: IbatTQwDti1
This commit is contained in:
Родитель
18a7248d09
Коммит
e31e00c7a2
|
@ -770,7 +770,7 @@ void DoSuspendAndSample(int aTid, nsIThread* aThread)
|
|||
/* sampleNative = */ true);
|
||||
|
||||
ASSERT_TRUE(collector.mSetIsMainThread == 1);
|
||||
ASSERT_TRUE(collector.mFrames > 5); // approximate; must be > 0
|
||||
ASSERT_TRUE(collector.mFrames > 0);
|
||||
}),
|
||||
NS_DISPATCH_SYNC);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче