diff options
author | jdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-06 22:45:40 +0000 |
---|---|---|
committer | jdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-06 22:45:40 +0000 |
commit | 2fbac2b5b51cf3af15554a472c289a1ce681a2fa (patch) | |
tree | ac5a03b6d51e9b62af49aa298f765ebf6fa62891 | |
parent | a276ec54e85de6c41651ee3e6816ea5b22ce76f8 (diff) | |
download | chromium_src-2fbac2b5b51cf3af15554a472c289a1ce681a2fa.zip chromium_src-2fbac2b5b51cf3af15554a472c289a1ce681a2fa.tar.gz chromium_src-2fbac2b5b51cf3af15554a472c289a1ce681a2fa.tar.bz2 |
[Android] Add scoped trace to ContentViewCore.updateFrameInfo
This method is taking a non-trivial amount of time during a typical scroll
sequence, so convert the instant trace into a proper scoped trace.
BUG=401204
NOTRY=true
Review URL: https://codereview.chromium.org/446063003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287881 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java index 21a5cbc..5f0f0fe 100644 --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java @@ -2276,7 +2276,7 @@ public class ContentViewCore float viewportWidth, float viewportHeight, float controlsOffsetYCss, float contentOffsetYCss, float overdrawBottomHeightCss) { - TraceEvent.instant("ContentViewCore:updateFrameInfo"); + TraceEvent.begin("ContentViewCore:updateFrameInfo"); // Adjust contentWidth/Height to be always at least as big as // the actual viewport (as set by onSizeChanged). final float deviceScale = mRenderCoordinates.getDeviceScaleFactor(); @@ -2341,6 +2341,7 @@ public class ContentViewCore if (mBrowserAccessibilityManager != null) { mBrowserAccessibilityManager.notifyFrameInfoInitialized(); } + TraceEvent.end("ContentViewCore:updateFrameInfo"); } @CalledByNative |