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

Unified Diff: chrome/browser/task_manager/sampling/task_group.h

Issue 2593233003: Add a task manager column that shows memory state of processes (Closed)
Patch Set: fix compile error Created 3 years, 11 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/task_manager/sampling/task_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/sampling/task_group.h
diff --git a/chrome/browser/task_manager/sampling/task_group.h b/chrome/browser/task_manager/sampling/task_group.h
index 8013e72c4e00d2b5ddf2944ef5b3de8115cd54aa..9d7f76e1b2cb2e4815649a86748f0ac1d95f6c14 100644
--- a/chrome/browser/task_manager/sampling/task_group.h
+++ b/chrome/browser/task_manager/sampling/task_group.h
@@ -12,6 +12,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/memory/memory_coordinator_client.h"
#include "base/memory/weak_ptr.h"
#include "base/process/process_handle.h"
#include "build/build_config.h"
@@ -75,6 +76,7 @@ class TaskGroup {
#endif
int64_t gpu_memory() const { return gpu_memory_; }
bool gpu_memory_has_duplicates() const { return gpu_memory_has_duplicates_; }
+ base::MemoryState memory_state() const { return memory_state_; }
int64_t per_process_network_usage() const {
return per_process_network_usage_;
}
@@ -145,6 +147,7 @@ class TaskGroup {
double cpu_usage_;
MemoryUsageStats memory_usage_;
int64_t gpu_memory_;
+ base::MemoryState memory_state_;
// The network usage in bytes per second as the sum of all network usages of
// the individual tasks sharing the same process.
int64_t per_process_network_usage_;
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/task_manager/sampling/task_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698