Bug 1506689 - Wait for JNI_READY before getting profiler time stamp from Gecko. r=snorp

Differential Revision: https://phabricator.services.mozilla.com/D11692
This commit is contained in:
Jan Henning committed 2018-11-13 06:55:01 +00:00
1 parent 33c0a70e4b
commit eb00a5069a
1 file changed
+1 -1
@@ -32,7 +32,7 @@ public class GeckoJavaSampler {
public long mJavaTime; // non-zero if Android system time is used
public Sample(StackTraceElement[] aStack) {
mFrames = new Frame[aStack.length];
if (GeckoThread.isStateAtLeast(GeckoThread.State.LIBS_READY)) {
if (GeckoThread.isStateAtLeast(GeckoThread.State.JNI_READY)) {
mTime = getProfilerTime();
}
if (mTime == 0.0d) {