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

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: 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 ExecutionMode execution_mode) override; 87 ExecutionMode execution_mode) override;
88 void ReEnqueueSequence(scoped_refptr<Sequence> sequence, 88 void ReEnqueueSequence(scoped_refptr<Sequence> sequence,
89 const SequenceSortKey& sequence_sort_key) override; 89 const SequenceSortKey& sequence_sort_key) override;
90 bool PostTaskWithSequence(std::unique_ptr<Task> task, 90 bool PostTaskWithSequence(std::unique_ptr<Task> task,
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* detach_duration_histogram() const {
98 return detach_duration_histogram_;
99 }
100
101 const HistogramBase* num_tasks_between_waits_histogram() const {
98 return num_tasks_between_waits_histogram_; 102 return num_tasks_between_waits_histogram_;
99 } 103 }
100 104
101 private: 105 private:
102 class SchedulerSingleThreadTaskRunner; 106 class SchedulerSingleThreadTaskRunner;
103 class SchedulerWorkerDelegateImpl; 107 class SchedulerWorkerDelegateImpl;
104 108
105 SchedulerWorkerPoolImpl(StringPiece name, 109 SchedulerWorkerPoolImpl(StringPiece name,
106 SchedulerWorkerPoolParams::IORestriction 110 SchedulerWorkerPoolParams::IORestriction
107 io_restriction, 111 io_restriction,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 TaskTracker* const task_tracker_; 200 TaskTracker* const task_tracker_;
197 DelayedTaskManager* const delayed_task_manager_; 201 DelayedTaskManager* const delayed_task_manager_;
198 202
199 DISALLOW_COPY_AND_ASSIGN(SchedulerWorkerPoolImpl); 203 DISALLOW_COPY_AND_ASSIGN(SchedulerWorkerPoolImpl);
200 }; 204 };
201 205
202 } // namespace internal 206 } // namespace internal
203 } // namespace base 207 } // namespace base
204 208
205 #endif // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ 209 #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_unittest.cc » ('j') | base/task_scheduler/task_scheduler_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698