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

Unified Diff: content/browser/loader/resource_scheduler.h

Issue 782903002: Breakdown ClientLoadedTime histograms into buckets based on number of clients. Fix RequestTimeThrot… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/loader/resource_scheduler.h
diff --git a/content/browser/loader/resource_scheduler.h b/content/browser/loader/resource_scheduler.h
index 2b8d7373b4f2c92f20ee194a182e4680a413cb25..af955b558ffd2c11856e1d1a3ca6983f66a56dd8 100644
--- a/content/browser/loader/resource_scheduler.h
+++ b/content/browser/loader/resource_scheduler.h
@@ -176,6 +176,9 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
// Called when a ScheduledResourceRequest is destroyed.
void RemoveRequest(ScheduledResourceRequest* request);
+ // Get the string reprentation for the histogram number of Clients bucket.
+ std::string GetNumClientsString();
+
// These calls may update the ThrottleState of all clients, and have the
// potential to be re-entrant.
// Called when a Client newly becomes active loading.
@@ -220,6 +223,7 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
bool should_coalesce_;
bool should_throttle_;
ClientMap client_map_;
+ size_t num_clients_;
size_t active_clients_loading_;
size_t coalesced_clients_;
// This is a repeating timer to initiate requests on COALESCED Clients.
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.cc » ('j') | content/browser/loader/resource_scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698