OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // File-level comment to appease parser. Eventually this will not be necessary. | 5 // File-level comment to appease parser. Eventually this will not be necessary. |
6 namespace experimental.systemInfo.cpu { | 6 namespace systemInfo.cpu { |
7 | 7 |
8 dictionary CpuInfo { | 8 dictionary CpuInfo { |
9 // The number of logical processors. | 9 // The number of logical processors. |
10 long numOfProcessors; | 10 long numOfProcessors; |
11 // The architecture name of the processors. | 11 // The architecture name of the processors. |
12 DOMString archName; | 12 DOMString archName; |
13 // The model name of the processors. | 13 // The model name of the processors. |
14 DOMString modelName; | 14 DOMString modelName; |
15 }; | 15 }; |
16 | 16 |
17 dictionary CpuUpdateInfo { | 17 dictionary CpuUpdateInfo { |
18 // The average usage percent of all processors, as a number | 18 // The average usage percent of all processors, as a number |
19 // between 0 and 100. | 19 // between 0 and 100. |
20 double averageUsage; | 20 double averageUsage; |
21 // The CPU usage array for each logic processor. | 21 // The CPU usage array for each logic processor. |
22 double[] usagePerProcessor; | 22 double[] usagePerProcessor; |
23 }; | 23 }; |
24 | 24 |
25 callback CpuInfoCallback = void (CpuInfo info); | 25 callback CpuInfoCallback = void (CpuInfo info); |
26 | 26 |
27 interface Functions { | 27 interface Functions { |
28 // Get CPU information. | 28 // Get CPU information. |
asargent_no_longer_on_chrome
2013/05/30 19:14:00
nit: can we include something here about whether t
Tim Song
2013/05/31 01:08:35
This function gets basic CPU information using bas
| |
29 static void get(CpuInfoCallback callback); | 29 static void get(CpuInfoCallback callback); |
30 }; | 30 }; |
31 | 31 |
32 interface Events { | 32 interface Events { |
33 // Fired periodically to report CPU history usage information. The default | 33 // Fired periodically to report CPU history usage information. The default |
34 // period interval is 1 seconds. | 34 // period interval is 1 seconds. |
asargent_no_longer_on_chrome
2013/05/30 19:14:00
I don't understand this comment about the "default
Tim Song
2013/05/31 01:08:35
From what I understand, we're planning on removing
asargent_no_longer_on_chrome
2013/05/31 18:31:32
Any reason not to just remove it now? In any event
Tim Song
2013/05/31 19:29:03
I was planning on doing this after this changelist
| |
35 static void onUpdated(CpuUpdateInfo info); | 35 static void onUpdated(CpuUpdateInfo info); |
36 }; | 36 }; |
37 }; | 37 }; |
OLD | NEW |