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

Unified Diff: chrome/browser/task_manager/task_manager_interface.h

Issue 2573183002: Add process start time and CPU time columns to task manager (Closed)
Patch Set: Fix nits Created 4 years 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..8e5f7b494e5c62d9b71d2fffa45be214256a4e1f 100644
--- a/chrome/browser/task_manager/task_manager_interface.h
+++ b/chrome/browser/task_manager/task_manager_interface.h
@@ -71,6 +71,14 @@ class TaskManagerInterface {
// |task_id| is running during the current refresh cycle.
virtual double GetCpuUsage(TaskId task_id) const = 0;
+ // returns the start time for the process on which the task
+ // with |task_id| is running.
+ virtual base::Time GetStartTime(TaskId task_id) const = 0;
+
+ // returns the CPU time for the process on which the task
+ // with |task_id| is running during the current refresh cycle.
+ virtual base::TimeDelta GetCpuTime(TaskId task_id) const = 0;
+
// Returns the current physical/private/shared memory usage of the task with
// |task_id| in bytes. A value of -1 means no valid value is currently
// available.

Powered by Google App Engine
This is Rietveld 408576698