OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 // Protocol for process resource usage. | 5 // Protocol for process resource usage. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 optional double processor_usage = 2; | 21 optional double processor_usage = 2; |
22 | 22 |
23 // Memory usage of working set. | 23 // Memory usage of working set. |
24 optional uint64 working_set_size = 3; | 24 optional uint64 working_set_size = 3; |
25 | 25 |
26 // Memory usage of page file. | 26 // Memory usage of page file. |
27 optional uint64 pagefile_size = 4; | 27 optional uint64 pagefile_size = 4; |
28 } | 28 } |
29 | 29 |
30 // The resource usage of several processes. | 30 // The resource usage of several processes. |
31 // Next Id: 6 | 31 // Next Id: 2 |
32 message AggregatedProcessResourceUsage { | 32 message AggregatedProcessResourceUsage { |
33 // A friendly name of the processes current instance aggregated from. | |
34 optional string name = 1; | |
35 | |
36 // The total processor usage. | |
37 optional double processor_usage = 2; | |
38 | |
39 // The total memory usage of working set. | |
40 optional uint64 working_set_size = 3; | |
41 | |
42 // The total memory usage of page file. | |
43 optional uint64 pagefile_size = 4; | |
44 | |
45 // The process resource usage of each individual process. | 33 // The process resource usage of each individual process. |
46 repeated ProcessResourceUsage usages = 5; | 34 repeated ProcessResourceUsage usages = 1; |
47 } | 35 } |
OLD | NEW |