Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_TASK_DURATIN_REPORTER_H_ | |
| 6 #define COMPONENTS_SCHEDULER_RENDERER_TASK_DURATIN_REPORTER_H_ | |
| 7 | |
| 8 #include "base/time/time.h" | |
| 9 | |
| 10 namespace scheduler { | |
| 11 | |
| 12 // Report the task duration in a histogram for every 100th task | |
|
majidvp
2016/07/27 18:34:03
nit: comment should end with a period.
sunyunjia
2016/07/27 19:51:04
Done.
| |
| 13 class TaskDurationReporter { | |
| 14 public: | |
| 15 TaskDurationReporter(); | |
| 16 ~TaskDurationReporter(); | |
| 17 void ReportSampleDuration(base::TimeDelta duration); | |
|
tdresser
2016/07/27 18:04:25
Maybe ReportTaskDuration?
sunyunjia
2016/07/27 19:51:04
Done.
| |
| 18 private: | |
| 19 int sample_count_; | |
| 20 | |
| 21 DISALLOW_COPY_AND_ASSIGN(TaskDurationReporter); | |
| 22 }; | |
| 23 | |
| 24 } | |
| 25 | |
| 26 #endif // COMPONENTS_SCHEDULER_RENDERER_TASK_DURATIN_REPORTER_H_ | |
| OLD | NEW |