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

Side by Side Diff: components/scheduler/renderer/renderer_task_duration.h

Issue 2184023002: Report the duration of sampled tasks with histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
(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_RENDERER_TASK_DURATION_H_
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_TASK_DURATION_H_
7
8 #include "base/time/time.h"
9
10 namespace scheduler {
11 class RendererTaskDuration {
majidvp 2016/07/27 13:50:59 I think the convention is to have a blank line bef
majidvp 2016/07/27 13:50:59 I think a better name may be a TaskDurationReporte
sunyunjia 2016/07/27 17:28:42 Done.
sunyunjia 2016/07/27 17:28:42 Done.
12 public:
13 RendererTaskDuration();
14 ~RendererTaskDuration();
15 void ReportSampleDuration(base::TimeDelta duration);
16 static const int kSampleInterval = 100;
majidvp 2016/07/27 13:50:59 This constant does not need to be public. Please m
sunyunjia 2016/07/27 17:28:43 Done.
17 private:
18 int sample_count_;
19 };
majidvp 2016/07/27 13:50:59 This class is not meant to be copies/moved so plea
sunyunjia 2016/07/27 17:28:42 Done.
20 }
21
22 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_TASK_DURATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698