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

Unified Diff: base/task_scheduler/scheduler_worker_pool_impl.h

Issue 2362743002: Add TaskScheduler.NumTasksBetweenWaits.[pool] histogram. (Closed)
Patch Set: fix test error Created 4 years, 3 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 | base/task_scheduler/scheduler_worker_pool_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/scheduler_worker_pool_impl.h
diff --git a/base/task_scheduler/scheduler_worker_pool_impl.h b/base/task_scheduler/scheduler_worker_pool_impl.h
index 3ab2299af97a1f37a0e40fc886a4404123b6e440..a621f797a53473b2096170a07689e456d5c3f2de 100644
--- a/base/task_scheduler/scheduler_worker_pool_impl.h
+++ b/base/task_scheduler/scheduler_worker_pool_impl.h
@@ -94,6 +94,10 @@ class BASE_EXPORT SchedulerWorkerPoolImpl : public SchedulerWorkerPool {
scoped_refptr<Sequence> sequence,
SchedulerWorker* worker) override;
+ const HistogramBase* num_tasks_between_waits_histogram_for_testing() const {
+ return num_tasks_between_waits_histogram_;
+ }
+
private:
class SchedulerSingleThreadTaskRunner;
class SchedulerWorkerDelegateImpl;
@@ -177,6 +181,10 @@ class BASE_EXPORT SchedulerWorkerPoolImpl : public SchedulerWorkerPool {
// leaked.
HistogramBase* const detach_duration_histogram_;
+ // TaskScheduler.NumTasksBetweenWaits.[worker pool name] histogram.
+ // Intentionally leaked.
+ HistogramBase* const num_tasks_between_waits_histogram_;
+
// TaskScheduler.TaskLatency.[worker pool name].[task priority] histograms.
// Indexed by task priority. Histograms are allocated on demand to reduce
// memory usage (some task priorities might never run in this
« no previous file with comments | « no previous file | base/task_scheduler/scheduler_worker_pool_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698