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

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: 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..eb1af688b8aa9a4c64c30353e1363353b172dc8c 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(
clamy 2015/12/18 15:42:11 I'm not sure about the naming of the measurement -
carlosk 2015/12/18 17:23:21 Looking at the code this is triggered from, it hap
clamy 2015/12/21 10:43:32 I'm fine with the measurement happening when it ha
carlosk 2015/12/21 11:19:25 Done.
+ "navigation", "Navigation timeToIOStart", 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/navigator_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698