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:
Michael Layzell 2017-08-08 13:28:29 -04:00
parent 18a7248d09
commit e31e00c7a2

View File

@ -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);
}