Commit 57135142 authored by ssid's avatar ssid Committed by Commit Bot

Add trace event to debug jank issue

BUG=905461

Change-Id: Idee52c3f44ca7aef6707e010b5e07bd668120109
Reviewed-on: https://chromium-review.googlesource.com/c/1330735Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: ssid <ssid@chromium.org>
Cr-Commit-Position: refs/heads/master@{#608179}
parent 47fa6871
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "base/android/scoped_java_ref.h" #include "base/android/scoped_java_ref.h"
#include "base/optional.h" #include "base/optional.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "base/trace_event/trace_event.h"
#include "content/browser/renderer_host/render_widget_host_impl.h" #include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h" #include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/android/media_metadata_android.h" #include "content/common/android/media_metadata_android.h"
...@@ -162,6 +163,8 @@ void WebContentsObserverProxy::DidFinishNavigation( ...@@ -162,6 +163,8 @@ void WebContentsObserverProxy::DidFinishNavigation(
ScopedJavaLocalRef<jstring> jerror_description = ScopedJavaLocalRef<jstring> jerror_description =
ConvertUTF8ToJavaString(env, ""); ConvertUTF8ToJavaString(env, "");
// Remove after fixing https://crbug/905461.
TRACE_EVENT0("browser", "Java_WebContentsObserverProxy_didFinishNavigation");
Java_WebContentsObserverProxy_didFinishNavigation( Java_WebContentsObserverProxy_didFinishNavigation(
env, java_observer_, jstring_url, navigation_handle->IsInMainFrame(), env, java_observer_, jstring_url, navigation_handle->IsInMainFrame(),
navigation_handle->IsErrorPage(), navigation_handle->HasCommitted(), navigation_handle->IsErrorPage(), navigation_handle->HasCommitted(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment