OLD | NEW |
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_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 static TaskManagerImpl* GetInstance(); | 35 static TaskManagerImpl* GetInstance(); |
36 | 36 |
37 // task_management::TaskManagerInterface: | 37 // task_management::TaskManagerInterface: |
38 void ActivateTask(TaskId task_id) override; | 38 void ActivateTask(TaskId task_id) override; |
39 void KillTask(TaskId task_id) override; | 39 void KillTask(TaskId task_id) override; |
40 double GetCpuUsage(TaskId task_id) const override; | 40 double GetCpuUsage(TaskId task_id) const override; |
41 int64_t GetPhysicalMemoryUsage(TaskId task_id) const override; | 41 int64_t GetPhysicalMemoryUsage(TaskId task_id) const override; |
42 int64_t GetPrivateMemoryUsage(TaskId task_id) const override; | 42 int64_t GetPrivateMemoryUsage(TaskId task_id) const override; |
43 int64_t GetSharedMemoryUsage(TaskId task_id) const override; | 43 int64_t GetSharedMemoryUsage(TaskId task_id) const override; |
| 44 int64_t GetSwappedMemoryUsage(TaskId task_id) const override; |
44 int64_t GetGpuMemoryUsage(TaskId task_id, | 45 int64_t GetGpuMemoryUsage(TaskId task_id, |
45 bool* has_duplicates) const override; | 46 bool* has_duplicates) const override; |
46 int GetIdleWakeupsPerSecond(TaskId task_id) const override; | 47 int GetIdleWakeupsPerSecond(TaskId task_id) const override; |
47 int GetNaClDebugStubPort(TaskId task_id) const override; | 48 int GetNaClDebugStubPort(TaskId task_id) const override; |
48 void GetGDIHandles(TaskId task_id, | 49 void GetGDIHandles(TaskId task_id, |
49 int64_t* current, | 50 int64_t* current, |
50 int64_t* peak) const override; | 51 int64_t* peak) const override; |
51 void GetUSERHandles(TaskId task_id, | 52 void GetUSERHandles(TaskId task_id, |
52 int64_t* current, | 53 int64_t* current, |
53 int64_t* peak) const override; | 54 int64_t* peak) const override; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // This will be set to true while there are observers and the task manager is | 150 // This will be set to true while there are observers and the task manager is |
150 // running. | 151 // running. |
151 bool is_running_; | 152 bool is_running_; |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); | 154 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); |
154 }; | 155 }; |
155 | 156 |
156 } // namespace task_management | 157 } // namespace task_management |
157 | 158 |
158 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ | 159 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ |
OLD | NEW |