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

Unified Diff: chrome/browser/task_manager/task_manager_interface.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
Index: chrome/browser/task_manager/task_manager_interface.h
diff --git a/chrome/browser/task_manager/task_manager_interface.h b/chrome/browser/task_manager/task_manager_interface.h
index e8faa916cc22c04809376d27414e56ee8c5d1a23..564522942cbbd923b745f1c237891d5370b524d5 100644
--- a/chrome/browser/task_manager/task_manager_interface.h
+++ b/chrome/browser/task_manager/task_manager_interface.h
@@ -12,6 +12,7 @@
#include <utility>
#include "base/macros.h"
+#include "base/memory/memory_coordinator_client.h"
#include "base/observer_list.h"
#include "base/process/kill.h"
#include "base/process/process_handle.h"
@@ -86,6 +87,9 @@ class TaskManagerInterface {
virtual int64_t GetGpuMemoryUsage(TaskId task_id,
bool* has_duplicates) const = 0;
+ // Returns the memory state of the task with |task_id|.
+ virtual base::MemoryState GetMemoryState(TaskId task_id) const = 0;
+
// Returns the number of average idle CPU wakeups per second since the last
// refresh cycle. A value of -1 means no valid value is currently available.
virtual int GetIdleWakeupsPerSecond(TaskId task_id) const = 0;
« no previous file with comments | « chrome/browser/task_manager/task_manager_browsertest_util.cc ('k') | chrome/browser/task_manager/task_manager_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698