Index: content/browser/frame_host/navigation_handle_impl.cc |
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc |
index dde5fa77087d7a6db28a97b0a27ce56ffa045e43..9b3cd410d935630a773a9c36b0a3791b4f76645a 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.cc |
+++ b/content/browser/frame_host/navigation_handle_impl.cc |
@@ -68,6 +68,12 @@ NavigationHandleImpl::NavigationHandleImpl( |
pending_nav_entry_id_(pending_nav_entry_id) { |
DCHECK(!navigation_start.is_null()); |
GetDelegate()->DidStartNavigation(this); |
+ |
+ if (IsInMainFrame()) { |
+ TRACE_EVENT_ASYNC_BEGIN_WITH_TIMESTAMP1( |
+ "navigation", "Navigation StartToCommit", this, |
+ navigation_start.ToInternalValue(), "Initial URL", url_.spec()); |
+ } |
} |
NavigationHandleImpl::~NavigationHandleImpl() { |
@@ -77,6 +83,12 @@ NavigationHandleImpl::~NavigationHandleImpl() { |
// destroyed in the middle of the NavigationThrottles checks. |
if (!IsBrowserSideNavigationEnabled() && !complete_callback_.is_null()) |
RunCompleteCallback(NavigationThrottle::CANCEL_AND_IGNORE); |
+ |
+ if (IsInMainFrame()) { |
+ TRACE_EVENT_ASYNC_END2("navigation", "Navigation StartToCommit", this, |
+ "URL", url_.spec(), "Net Error Code", |
+ net_error_code_); |
+ } |
} |
NavigatorDelegate* NavigationHandleImpl::GetDelegate() const { |