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 2bb284d1e86a015d37818ec7e9d589dc1aa4e87a..1c68de8b9ee92f0be6ad4627aabfc37489abf163 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.cc |
+++ b/content/browser/frame_host/navigation_handle_impl.cc |
@@ -69,6 +69,12 @@ NavigationHandleImpl::NavigationHandleImpl( |
is_in_commit_(false) { |
DCHECK(!navigation_start.is_null()); |
GetDelegate()->DidStartNavigation(this); |
+ |
+ if (IsInMainFrame()) { |
+ TRACE_EVENT_ASYNC_BEGIN_WITH_TIMESTAMP1( |
+ "navigation", "Navigation StartToCommit", this, |
+ navigation_start.ToInternalValue(), "URL", url_.spec()); |
clamy
2016/03/23 12:12:16
Are you trying to index the navigation using the u
Bryan McQuade
2016/03/23 12:17:33
That's a good point. We shouldn't assume the URL i
shivanisha
2016/03/23 13:56:09
the navigation handle pointer is the index here an
carlosk
2016/03/23 14:40:34
Mind that there can be 2 simultaneously ongoing na
shivanisha
2016/03/23 18:07:08
That's a good point that if we use frameTreeNode i
clamy
2016/03/24 10:36:32
Indexing on the NavigationHandle is good (I was wo
shivanisha
2016/03/29 19:49:32
Actually since we are logging the URL in the end t
carlosk
2016/03/31 10:10:29
IIUC there's no much use in doing that. The END ur
shivanisha
2016/04/12 14:10:03
Applying 2 different labels is making things clear
|
+ } |
} |
NavigationHandleImpl::~NavigationHandleImpl() { |
@@ -80,6 +86,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", |
clamy
2016/03/23 12:12:16
You may also want to add a boolean to check whethe
shivanisha
2016/03/23 13:56:09
Sure, that sounds good
shivanisha
2016/03/29 19:49:32
Actually, it seems we can assume that net error co
|
+ net_error_code_); |
+ } |
} |
NavigatorDelegate* NavigationHandleImpl::GetDelegate() const { |