Chromium Code Reviews| 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; |
|
afakhry
2016/12/21 18:34:34
Add a comment that these are only implemented for
chengx
2016/12/21 22:05:54
Done.
|
| + |
| // 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. |