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_GROUP_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_GROUP_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_GROUP_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_GROUP_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 const base::ProcessHandle& process_handle() const { return process_handle_; } | 63 const base::ProcessHandle& process_handle() const { return process_handle_; } |
64 const base::ProcessId& process_id() const { return process_id_; } | 64 const base::ProcessId& process_id() const { return process_id_; } |
65 | 65 |
66 size_t num_tasks() const { return tasks_.size(); } | 66 size_t num_tasks() const { return tasks_.size(); } |
67 bool empty() const { return tasks_.empty(); } | 67 bool empty() const { return tasks_.empty(); } |
68 | 68 |
69 double cpu_usage() const { return cpu_usage_; } | 69 double cpu_usage() const { return cpu_usage_; } |
70 int64_t private_bytes() const { return memory_usage_.private_bytes; } | 70 int64_t private_bytes() const { return memory_usage_.private_bytes; } |
71 int64_t shared_bytes() const { return memory_usage_.shared_bytes; } | 71 int64_t shared_bytes() const { return memory_usage_.shared_bytes; } |
72 int64_t physical_bytes() const { return memory_usage_.physical_bytes; } | 72 int64_t physical_bytes() const { return memory_usage_.physical_bytes; } |
| 73 #if defined(OS_CHROMEOS) |
| 74 int64_t swapped_bytes() const { return memory_usage_.swapped_bytes; } |
| 75 #endif |
73 int64_t gpu_memory() const { return gpu_memory_; } | 76 int64_t gpu_memory() const { return gpu_memory_; } |
74 bool gpu_memory_has_duplicates() const { return gpu_memory_has_duplicates_; } | 77 bool gpu_memory_has_duplicates() const { return gpu_memory_has_duplicates_; } |
75 int64_t per_process_network_usage() const { | 78 int64_t per_process_network_usage() const { |
76 return per_process_network_usage_; | 79 return per_process_network_usage_; |
77 } | 80 } |
78 bool is_backgrounded() const { return is_backgrounded_; } | 81 bool is_backgrounded() const { return is_backgrounded_; } |
79 | 82 |
80 #if defined(OS_WIN) | 83 #if defined(OS_WIN) |
81 int64_t gdi_current_handles() const { return gdi_current_handles_; } | 84 int64_t gdi_current_handles() const { return gdi_current_handles_; } |
82 int64_t gdi_peak_handles() const { return gdi_peak_handles_; } | 85 int64_t gdi_peak_handles() const { return gdi_peak_handles_; } |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // destroyed. | 167 // destroyed. |
165 base::WeakPtrFactory<TaskGroup> weak_ptr_factory_; | 168 base::WeakPtrFactory<TaskGroup> weak_ptr_factory_; |
166 | 169 |
167 DISALLOW_COPY_AND_ASSIGN(TaskGroup); | 170 DISALLOW_COPY_AND_ASSIGN(TaskGroup); |
168 }; | 171 }; |
169 | 172 |
170 } // namespace task_management | 173 } // namespace task_management |
171 | 174 |
172 | 175 |
173 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_GROUP_H_ | 176 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_GROUP_H_ |
OLD | NEW |