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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // Activates the task with |task_id| by bringing its container to the front if 61 // Activates the task with |task_id| by bringing its container to the front if
62 // possible. 62 // possible.
63 virtual void ActivateTask(TaskId task_id) = 0; 63 virtual void ActivateTask(TaskId task_id) = 0;
64 64
65 // Returns if the task is killable. 65 // Returns if the task is killable.
66 virtual bool IsTaskKillable(TaskId task_id) = 0; 66 virtual bool IsTaskKillable(TaskId task_id) = 0;
67 67
68 // Kills the task with |task_id|. 68 // Kills the task with |task_id|.
69 virtual void KillTask(TaskId task_id) = 0; 69 virtual void KillTask(TaskId task_id) = 0;
70 70
71 // returns the CPU usage in percent for the process on which the task with 71 // Returns the CPU usage in percent for the process on which the task with
72 // |task_id| is running during the current refresh cycle. 72 // |task_id| is running during the current refresh cycle.
73 virtual double GetCpuUsage(TaskId task_id) const = 0; 73 virtual double GetCpuUsage(TaskId task_id) const = 0;
74 74
75 // Returns the start time for the process on which the task
76 // with |task_id| is running. Only implemented in Windows now.
77 virtual base::Time GetStartTime(TaskId task_id) const = 0;
78
79 // Returns the CPU time for the process on which the task
80 // with |task_id| is running during the current refresh cycle.
81 // Only implemented in Windows now.
82 virtual base::TimeDelta GetCpuTime(TaskId task_id) const = 0;
83
75 // Returns the current physical/private/shared memory usage of the task with 84 // Returns the current physical/private/shared memory usage of the task with
76 // |task_id| in bytes. A value of -1 means no valid value is currently 85 // |task_id| in bytes. A value of -1 means no valid value is currently
77 // available. 86 // available.
78 virtual int64_t GetPhysicalMemoryUsage(TaskId task_id) const = 0; 87 virtual int64_t GetPhysicalMemoryUsage(TaskId task_id) const = 0;
79 virtual int64_t GetPrivateMemoryUsage(TaskId task_id) const = 0; 88 virtual int64_t GetPrivateMemoryUsage(TaskId task_id) const = 0;
80 virtual int64_t GetSharedMemoryUsage(TaskId task_id) const = 0; 89 virtual int64_t GetSharedMemoryUsage(TaskId task_id) const = 0;
81 virtual int64_t GetSwappedMemoryUsage(TaskId task_id) const = 0; 90 virtual int64_t GetSwappedMemoryUsage(TaskId task_id) const = 0;
82 91
83 // Returns the GPU memory usage of the task with |task_id| in bytes. A value 92 // Returns the GPU memory usage of the task with |task_id| in bytes. A value
84 // of -1 means no valid value is currently available. 93 // of -1 means no valid value is currently available.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 283
275 // The flags containing the enabled resources types calculations. 284 // The flags containing the enabled resources types calculations.
276 int64_t enabled_resources_flags_; 285 int64_t enabled_resources_flags_;
277 286
278 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface); 287 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface);
279 }; 288 };
280 289
281 } // namespace task_manager 290 } // namespace task_manager
282 291
283 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ 292 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_
OLDNEW
« 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