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

Side by Side Diff: remoting/base/process_resource_usage.h

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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_BASE_PROCESS_RESOURCE_USAGE_H_
6 #define REMOTING_BASE_PROCESS_RESOURCE_USAGE_H_
7
8 #include <stddef.h>
9
10 namespace remoting {
11
12 // A collection of the resource usage of a process.
13 struct ProcessResourceUsage {
14 // Processor usage. It should be a consistent value on all platforms in
15 // range of 0 to (100 * NumCPUCores).
16 double processor_usage = 0;
17
18 // Memory usage of working set.
19 size_t working_set_size = 0;
Sergey Ulanov 2017/03/27 19:43:20 Is it in bytes?
Hzj_jie 2017/03/30 01:09:45 Yes.
20
21 // Memory usage of page file.
22 size_t pagefile_size = 0;
23
24 // Merges the usage from |other| to |this|.
25 void Append(const ProcessResourceUsage& other);
Sergey Ulanov 2017/03/27 19:43:19 Call it Add(), since the order is irrelevant.
Hzj_jie 2017/03/30 01:09:45 Done.
26 };
27
28 } // namespace remoting
29
30 #endif // REMOTING_BASE_PROCESS_RESOURCE_USAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698