mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user