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 <map> | 8 #include <map> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void GetUSERHandles(TaskId task_id, | 44 void GetUSERHandles(TaskId task_id, |
45 int64* current, | 45 int64* current, |
46 int64* peak) const override; | 46 int64* peak) const override; |
47 const base::string16& GetTitle(TaskId task_id) const override; | 47 const base::string16& GetTitle(TaskId task_id) const override; |
48 base::string16 GetProfileName(TaskId task_id) const override; | 48 base::string16 GetProfileName(TaskId task_id) const override; |
49 const gfx::ImageSkia& GetIcon(TaskId task_id) const override; | 49 const gfx::ImageSkia& GetIcon(TaskId task_id) const override; |
50 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override; | 50 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override; |
51 const base::ProcessId& GetProcessId(TaskId task_id) const override; | 51 const base::ProcessId& GetProcessId(TaskId task_id) const override; |
52 Task::Type GetType(TaskId task_id) const override; | 52 Task::Type GetType(TaskId task_id) const override; |
53 int64 GetNetworkUsage(TaskId task_id) const override; | 53 int64 GetNetworkUsage(TaskId task_id) const override; |
| 54 int64 GetProcessTotalNetworkUsage(TaskId task_id) const override; |
54 int64 GetSqliteMemoryUsed(TaskId task_id) const override; | 55 int64 GetSqliteMemoryUsed(TaskId task_id) const override; |
55 bool GetV8Memory(TaskId task_id, | 56 bool GetV8Memory(TaskId task_id, |
56 int64* allocated, | 57 int64* allocated, |
57 int64* used) const override; | 58 int64* used) const override; |
58 bool GetWebCacheStats( | 59 bool GetWebCacheStats( |
59 TaskId task_id, | 60 TaskId task_id, |
60 blink::WebCache::ResourceTypeStats* stats) const override; | 61 blink::WebCache::ResourceTypeStats* stats) const override; |
61 const TaskIdList& GetTaskIdsList() const override; | 62 const TaskIdList& GetTaskIdsList() const override; |
62 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; | 63 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; |
63 | 64 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // This will be set to true while there are observers and the task manager is | 126 // This will be set to true while there are observers and the task manager is |
126 // running. | 127 // running. |
127 bool is_running_; | 128 bool is_running_; |
128 | 129 |
129 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); | 130 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); |
130 }; | 131 }; |
131 | 132 |
132 } // namespace task_management | 133 } // namespace task_management |
133 | 134 |
134 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ | 135 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ |
OLD | NEW |