Chromium Code Reviews| Index: content/browser/loader/navigation_url_loader_impl.cc |
| diff --git a/content/browser/loader/navigation_url_loader_impl.cc b/content/browser/loader/navigation_url_loader_impl.cc |
| index 2cae9a6237240334d3d026ea6b1d5f5075744b9b..a7d4287d14d7e322dfc83971b207fd19c3c4a52f 100644 |
| --- a/content/browser/loader/navigation_url_loader_impl.cc |
| +++ b/content/browser/loader/navigation_url_loader_impl.cc |
| @@ -6,6 +6,7 @@ |
| #include "base/bind.h" |
| #include "base/location.h" |
| +#include "base/trace_event/trace_event.h" |
| #include "content/browser/frame_host/navigation_request_info.h" |
| #include "content/browser/loader/navigation_url_loader_delegate.h" |
| #include "content/browser/loader/navigation_url_loader_impl_core.h" |
| @@ -25,6 +26,15 @@ NavigationURLLoaderImpl::NavigationURLLoaderImpl( |
| DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| core_ = new NavigationURLLoaderImplCore(weak_factory_.GetWeakPtr()); |
| + TRACE_EVENT_ASYNC_BEGIN_WITH_TIMESTAMP1( |
| + // category and name |
|
clamy
2015/12/21 10:43:32
Same thing about the comments.
carlosk
2015/12/21 11:19:25
Done.
|
| + "navigation", "Navigation timeToResponseStarted", |
| + // use the NavigationURLLoaderImplCore as the async trace id |
| + core_, |
| + // timestamp |
| + request_info->common_params.navigation_start.ToInternalValue(), |
| + // add tree node id as a parameter |
| + "FrameTreeNode id", request_info->frame_tree_node_id); |
| ServiceWorkerNavigationHandleCore* service_worker_handle_core = |
| service_worker_handle ? service_worker_handle->core() : nullptr; |
| BrowserThread::PostTask( |