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

Side by Side Diff: base/task_scheduler/scheduler_worker_pool_impl.h

Issue 2420973002: Plumb Task Scheduler Histograms to the Task Scheduler Internals Page (Closed)
Patch Set: CR Feedback Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ 5 #ifndef BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_
6 #define BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ 6 #define BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 scoped_refptr<Sequence> sequence, 91 scoped_refptr<Sequence> sequence,
92 SchedulerWorker* worker) override; 92 SchedulerWorker* worker) override;
93 void PostTaskWithSequenceNow(std::unique_ptr<Task> task, 93 void PostTaskWithSequenceNow(std::unique_ptr<Task> task,
94 scoped_refptr<Sequence> sequence, 94 scoped_refptr<Sequence> sequence,
95 SchedulerWorker* worker) override; 95 SchedulerWorker* worker) override;
96 96
97 const HistogramBase* num_tasks_between_waits_histogram_for_testing() const { 97 const HistogramBase* num_tasks_between_waits_histogram_for_testing() const {
98 return num_tasks_between_waits_histogram_; 98 return num_tasks_between_waits_histogram_;
99 } 99 }
100 100
101 void ReportHistograms(std::vector<const HistogramBase*>* histograms) const;
gab 2016/10/18 14:28:48 This isn't "reporting" histograms (i.e. sending to
robliao 2016/10/18 20:40:25 Done.
102
101 private: 103 private:
102 class SchedulerSingleThreadTaskRunner; 104 class SchedulerSingleThreadTaskRunner;
103 class SchedulerWorkerDelegateImpl; 105 class SchedulerWorkerDelegateImpl;
104 106
105 SchedulerWorkerPoolImpl(StringPiece name, 107 SchedulerWorkerPoolImpl(StringPiece name,
106 SchedulerWorkerPoolParams::IORestriction 108 SchedulerWorkerPoolParams::IORestriction
107 io_restriction, 109 io_restriction,
108 const TimeDelta& suggested_reclaim_time, 110 const TimeDelta& suggested_reclaim_time,
109 TaskTracker* task_tracker, 111 TaskTracker* task_tracker,
110 DelayedTaskManager* delayed_task_manager); 112 DelayedTaskManager* delayed_task_manager);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 TaskTracker* const task_tracker_; 198 TaskTracker* const task_tracker_;
197 DelayedTaskManager* const delayed_task_manager_; 199 DelayedTaskManager* const delayed_task_manager_;
198 200
199 DISALLOW_COPY_AND_ASSIGN(SchedulerWorkerPoolImpl); 201 DISALLOW_COPY_AND_ASSIGN(SchedulerWorkerPoolImpl);
200 }; 202 };
201 203
202 } // namespace internal 204 } // namespace internal
203 } // namespace base 205 } // namespace base
204 206
205 #endif // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ 207 #endif // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | base/task_scheduler/scheduler_worker_pool_impl.cc » ('j') | base/task_scheduler/task_scheduler_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698