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

Unified Diff: remoting/base/process_resource_usage.cc

Issue 2775983003: [Chromoting] Retrieve process resource usage (ProcessStats) and its tests (Closed)
Patch Set: Created 3 years, 9 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
Index: remoting/base/process_resource_usage.cc
diff --git a/remoting/base/process_resource_usage.cc b/remoting/base/process_resource_usage.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f2eef97d05aeb435e757c94b5a28233aeeb5033b
--- /dev/null
+++ b/remoting/base/process_resource_usage.cc
@@ -0,0 +1,15 @@
+// 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.
+
+#include "remoting/base/process_resource_usage.h"
+
+namespace remoting {
+
+void ProcessResourceUsage::Append(const ProcessResourceUsage& other) {
+ processor_usage += other.processor_usage;
Sergey Ulanov 2017/03/27 19:43:19 I think it would be useful to collect info for eac
Hzj_jie 2017/03/30 01:09:45 Done.
+ working_set_size += other.working_set_size;
+ pagefile_size += other.pagefile_size;
+}
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698