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

Side by Side Diff: components/scheduler/renderer/task_time_reporter.cc

Issue 2184023002: Report the duration of sampled tasks with histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove the sampling part. Change bin number to 50. 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 #include "components/scheduler/renderer/task_time_reporter.h"
6
7 #include "base/metrics/histogram_macros.h"
8
9 namespace scheduler {
10 TaskTimeReporter::TaskTimeReporter() {}
11
12 TaskTimeReporter::~TaskTimeReporter() {}
13
14 void TaskTimeReporter::ReportTaskTime(base::TimeDelta duration) {
15 UMA_HISTOGRAM_CUSTOM_COUNTS("RendererScheduler.TaskTime",
16 duration.InMicroseconds(), 1, 1000000, 50);
Ilya Sherman 2016/08/03 00:54:46 Optional nit: It seems rather heavy-weight to defi
Sami 2016/08/03 10:01:22 I agree -- could you move the macro to the call si
17 }
18 }
OLDNEW
« no previous file with comments | « components/scheduler/renderer/task_time_reporter.h ('k') | components/scheduler/renderer/task_time_reporter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698