Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acd7e2eb authored by Steve Block's avatar Steve Block
Browse files

Don't try to use Network timing with the Chromium HTTP stack

Change-Id: Ibba20a13e1389c2a7b1cc0cc45d3ef012894cb99
parent 938d2fbc
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -920,7 +920,10 @@ class CallbackProxy extends Handler {
        if (PERF_PROBE) {
            mWebCoreThreadTime = SystemClock.currentThreadTimeMillis();
            mWebCoreIdleTime = 0;
            if (!JniUtil.useChromiumHttpStack()) {
                // Network is only used with the Android HTTP stack.
                Network.getInstance(mContext).startTiming();
            }
            // un-comment this if PERF_PROBE is true
//            Looper.myQueue().setWaitCallback(mIdleCallback);
        }
@@ -938,8 +941,11 @@ class CallbackProxy extends Handler {
            Log.d("WebCore", "WebCore thread used " +
                    (SystemClock.currentThreadTimeMillis() - mWebCoreThreadTime)
                    + " ms and idled " + mWebCoreIdleTime + " ms");
            if (!JniUtil.useChromiumHttpStack()) {
                // Network is only used with the Android HTTP stack.
                Network.getInstance(mContext).stopTiming();
            }
        }
        Message msg = obtainMessage(PAGE_FINISHED, url);
        sendMessage(msg);
    }