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 #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 } | |
| OLD | NEW |