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

Unified Diff: chrome/browser/task_manager/task_manager.h

Issue 1181263005: Make task manager memory data more efficient and meaningful. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust high threshold so it works with Dr Memory. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/task_manager/task_manager.h
diff --git a/chrome/browser/task_manager/task_manager.h b/chrome/browser/task_manager/task_manager.h
index a9ff4f5eea50f521487afa1db4c238a74c69e28a..c3d57b48000321f875ebaf52a0b1817a36f51882 100644
--- a/chrome/browser/task_manager/task_manager.h
+++ b/chrome/browser/task_manager/task_manager.h
@@ -21,6 +21,7 @@
#include "third_party/WebKit/public/web/WebCache.h"
class PrefRegistrySimple;
+class PrivateWorkingSetSnapshot;
class TaskManagerModel;
class TaskManagerModelGpuDataManagerObserver;
@@ -284,6 +285,10 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
// Updates the values for all rows.
void Refresh();
+ // Do a bulk repopulation of the physical_memory data on platforms where that
+ // is faster.
+ void RefreshPhysicalMemoryFromWorkingSetSnapshot();
+
void NotifyVideoMemoryUsageStats(
const content::GPUVideoMemoryUsageStats& video_memory_usage_stats);
@@ -529,6 +534,10 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
std::vector<base::Closure> on_data_ready_callbacks_;
+#if defined(OS_WIN)
+ scoped_ptr<PrivateWorkingSetSnapshot> working_set_snapshot_;
+#endif
+
// All per-Resource values are stored here.
mutable PerResourceCache per_resource_cache_;
« no previous file with comments | « chrome/browser/private_working_set_snapshot_win_unittest.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698