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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 966813002: RDH: Add some more instrumentation to figure out jank in RDH. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index 6c4da44bb62f2d767769067b9db652e13312000d..a80d6f300d149756bdacdf390b0aba374a1109ef 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -2184,6 +2184,11 @@ ResourceDispatcherHostImpl::GetLoadInfoForAllRoutes() {
"455952 ResourceDispatcherHostImpl::GetLoadInfoForAllRoutes2"));
upload_progress = request->GetUploadProgress();
}
+
+ tracked_objects::ScopedTracker tracking_profile4(
eroman 2015/02/27 21:25:52 I would suggest measuring TimeTicks manually for t
mmenke 2015/02/27 21:50:22 Good point. For now, I think I'll just do this an
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "455952 ResourceDispatcherHostImpl::GetLoadInfoForAllRoutes4"));
+
LoadInfo load_info;
load_info.url = request->url();
{
@@ -2197,8 +2202,17 @@ ResourceDispatcherHostImpl::GetLoadInfoForAllRoutes() {
load_info.upload_size = upload_progress.size();
load_info.upload_position = upload_progress.position();
+ tracked_objects::ScopedTracker tracking_profile5(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "455952 ResourceDispatcherHostImpl::GetLoadInfoForAllRoutes5"));
+
GlobalRoutingID id(loader.second->GetRequestInfo()->GetGlobalRoutingID());
LoadInfoMap::iterator existing = info_map->find(id);
+
+ tracked_objects::ScopedTracker tracking_profile6(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "455952 ResourceDispatcherHostImpl::GetLoadInfoForAllRoutes6"));
+
if (existing == info_map->end() ||
LoadInfoIsMoreInteresting(load_info, existing->second)) {
(*info_map)[id] = load_info;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698