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

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 and conflicts. 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 564522942cbbd923b745f1c237891d5370b524d5..24599030b7cf7c74df49ebc08fc4039772cd8bdb 100644
--- a/chrome/browser/task_manager/task_manager_interface.h
+++ b/chrome/browser/task_manager/task_manager_interface.h
@@ -68,10 +68,19 @@ class TaskManagerInterface {
// Kills the task with |task_id|.
virtual void KillTask(TaskId task_id) = 0;
- // returns the CPU usage in percent for the process on which the task with
+ // Returns the CPU usage in percent for the process on which the task with
// |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. Only implemented in Windows now.
+ 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.
+ // Only implemented in Windows now.
+ 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.
« no previous file with comments | « chrome/browser/task_manager/sampling/task_manager_impl.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