Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: remoting/proto/process_stats.proto

Issue 2775983003: [Chromoting] Retrieve process resource usage (ProcessStats) and its tests (Closed)
Patch Set: thread_checker_ should be correctly constructed Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/proto/BUILD.gn ('k') | remoting/protocol/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/proto/process_stats.proto
diff --git a/remoting/proto/process_stats.proto b/remoting/proto/process_stats.proto
new file mode 100644
index 0000000000000000000000000000000000000000..77d9c8fe94290ba997dfcd20f18a56a43bf8568c
--- /dev/null
+++ b/remoting/proto/process_stats.proto
@@ -0,0 +1,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;
+}
« no previous file with comments | « remoting/proto/BUILD.gn ('k') | remoting/protocol/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698