forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess_stats.proto
47 lines (34 loc) · 1.28 KB
/
process_stats.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Protocol for process resource usage.
syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package remoting.protocol;
// The resource usage of a single process.
// Next Id: 5
message ProcessResourceUsage {
// The name or friendly name of the process.
optional string process_name = 1;
// The processor usage. It should be a consistent value on all platforms in
// range of 0 to (100 * NumCPUCores).
optional double processor_usage = 2;
// Memory usage of working set.
optional uint64 working_set_size = 3;
// Memory usage of page file.
optional uint64 pagefile_size = 4;
}
// The resource usage of several processes.
// Next Id: 6
message AggregatedProcessResourceUsage {
// A friendly name of the processes current instance aggregated from.
optional string name = 1;
// The total processor usage.
optional double processor_usage = 2;
// The total memory usage of working set.
optional uint64 working_set_size = 3;
// The total memory usage of page file.
optional uint64 pagefile_size = 4;
// The process resource usage of each individual process.
repeated ProcessResourceUsage usages = 5;
}