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

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

Issue 972773002: Add more ScopedTrackers to track down jank in the RDH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Oops 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 a80d6f300d149756bdacdf390b0aba374a1109ef..373ebed99d7833fdb223998843b266fe74b339d8 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -2162,6 +2162,10 @@ ResourceDispatcherHostImpl::GetLoadInfoForAllRoutes() {
// thread where they can be passed along to the respective RVHs.
scoped_ptr<LoadInfoMap> info_map(new LoadInfoMap());
+ tracked_objects::ScopedTracker tracking_profile0(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "455952 ResourceDispatcherHostImpl::GetLoadInfoForAllRoutes0"));
+
for (const auto& loader : pending_loaders_) {
// Also poll for upload progress on this timer and send upload progress ipc
// messages to the plugin process.
@@ -2233,6 +2237,10 @@ void ResourceDispatcherHostImpl::UpdateLoadInfo() {
if (info_map->empty())
return;
+ tracked_objects::ScopedTracker tracking_profile2(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "455952 ResourceDispatcherHostImpl::UpdateLoadInfo2"));
+
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
base::Bind(&ResourceDispatcherHostImpl::UpdateLoadInfoOnUIThread,
« 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