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

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: Address CR comments 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
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 33e2560ee6cc008bdcaba4414de3c60355e4b0f2..ef2622bde509aac7d445b4f899982592b289def6 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -281,6 +281,11 @@ 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 timeToIOStartBeforeThrottles",
+ 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') | content/browser/frame_host/render_frame_host_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698