OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 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 CONTENT_BROWSER_POWER_EVENT_H_ | |
6 #define CONTENT_BROWSER_POWER_EVENT_H_ | |
7 | |
8 #include "base/time/time.h" | |
9 | |
10 namespace content { | |
11 | |
12 // A class used to monitor the power usage and tell profiler the power data | |
13 struct PowerEvent { | |
pfeldman
2014/01/09 11:38:58
You can define it within the helper.
| |
14 enum Type { | |
qsr
2014/01/17 11:50:14
Also, pease comment on this variable, at least for
| |
15 SOC_PACKAGE, | |
16 CPU, | |
17 GPU, | |
18 // counts the number of known PowerEvent | |
19 ID_COUNT | |
20 }; | |
21 | |
22 Type type; | |
23 base::TimeTicks time; | |
24 double value; // power | |
25 }; | |
26 | |
27 } // namespace content | |
28 | |
29 #endif // CONTENT_BROWSER_POWER_EVENT_H_ | |
OLD | NEW |