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

Side by Side Diff: chrome/browser/task_manager/sampling/task_group.h

Issue 2238403003: Task manager: Get physical memory efficiently for all processes from SharedSampler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback Created 4 years, 3 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_SAMPLING_TASK_GROUP_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_GROUP_H_
6 #define CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_GROUP_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 private: 100 private:
101 void RefreshGpuMemory(const gpu::VideoMemoryUsageStats& gpu_memory_stats); 101 void RefreshGpuMemory(const gpu::VideoMemoryUsageStats& gpu_memory_stats);
102 102
103 void RefreshWindowsHandles(); 103 void RefreshWindowsHandles();
104 104
105 // |child_process_unique_id| see Task::GetChildProcessUniqueID(). 105 // |child_process_unique_id| see Task::GetChildProcessUniqueID().
106 void RefreshNaClDebugStubPort(int child_process_unique_id); 106 void RefreshNaClDebugStubPort(int child_process_unique_id);
107 107
108 void OnCpuRefreshDone(double cpu_usage); 108 void OnCpuRefreshDone(double cpu_usage);
109 109
110 void OnPhysicalMemoryUsageRefreshDone(int64_t physical_bytes);
110 void OnMemoryUsageRefreshDone(MemoryUsageStats memory_usage); 111 void OnMemoryUsageRefreshDone(MemoryUsageStats memory_usage);
111 112
112 void OnIdleWakeupsRefreshDone(int idle_wakeups_per_second); 113 void OnIdleWakeupsRefreshDone(int idle_wakeups_per_second);
113 114
114 #if defined(OS_LINUX) 115 #if defined(OS_LINUX)
115 void OnOpenFdCountRefreshDone(int open_fd_count); 116 void OnOpenFdCountRefreshDone(int open_fd_count);
116 #endif // defined(OS_LINUX) 117 #endif // defined(OS_LINUX)
117 118
118 void OnProcessPriorityDone(bool is_backgrounded); 119 void OnProcessPriorityDone(bool is_backgrounded);
119 120
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Always keep this the last member of this class so that it's the first to be 169 // Always keep this the last member of this class so that it's the first to be
169 // destroyed. 170 // destroyed.
170 base::WeakPtrFactory<TaskGroup> weak_ptr_factory_; 171 base::WeakPtrFactory<TaskGroup> weak_ptr_factory_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(TaskGroup); 173 DISALLOW_COPY_AND_ASSIGN(TaskGroup);
173 }; 174 };
174 175
175 } // namespace task_manager 176 } // namespace task_manager
176 177
177 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_GROUP_H_ 178 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_GROUP_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/sampling/shared_sampler_win.cc ('k') | chrome/browser/task_manager/sampling/task_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698