Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(638)

Unified Diff: content/browser/frame_host/navigation_request.cc

Issue 1532873003: PlzNavigate: add initial traces for new TBM benchmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed crash issue for synchronous navigations. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index 027ba75898754583eb4776e9d8c522cbd309fb98..7edc61fddbf8d3ccde969c5abb4c5fee2481e753 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -281,6 +281,12 @@ void NavigationRequest::OnRequestFailed(bool has_stale_copy_in_cache,
}
void NavigationRequest::OnRequestStarted(base::TimeTicks timestamp) {
+ if (frame_tree_node_->IsMainFrame()) {
+ TRACE_EVENT_ASYNC_END_WITH_TIMESTAMP0(
+ "navigation", "Navigation timeToNetworkStack", navigation_handle_.get(),
+ timestamp.ToInternalValue());
+ }
+
frame_tree_node_->navigator()->LogResourceRequestTime(timestamp,
common_params_.url);
}
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698