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

Unified Diff: chrome/browser/task_management/sampling/task_group_sampler.h

Issue 1845893002: [ChromeOS] Add Swapped Memory to TaskManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_management/sampling/task_group_sampler.h
diff --git a/chrome/browser/task_management/sampling/task_group_sampler.h b/chrome/browser/task_management/sampling/task_group_sampler.h
index b70b6eb6288b92302f673e973360b9dc86af177e..00e33c8b8169383e4af07b1c8c8c20c139c02c08 100644
--- a/chrome/browser/task_management/sampling/task_group_sampler.h
+++ b/chrome/browser/task_management/sampling/task_group_sampler.h
@@ -22,15 +22,14 @@ namespace task_management {
// Wraps the memory usage stats values together so that it can be sent between
// the UI and the worker threads.
struct MemoryUsageStats {
- int64_t private_bytes;
- int64_t shared_bytes;
- int64_t physical_bytes;
-
- MemoryUsageStats()
- : private_bytes(-1),
- shared_bytes(-1),
- physical_bytes(-1) {
- }
+ int64_t private_bytes = -1;
+ int64_t shared_bytes = -1;
+ int64_t physical_bytes = -1;
+#if defined(OS_CHROMEOS)
+ int64_t swapped_bytes = -1;
+#endif
+
+ MemoryUsageStats() {}
};
// Defines the expensive process' stats sampler that will calculate these
« no previous file with comments | « chrome/browser/task_management/sampling/task_group.h ('k') | chrome/browser/task_management/sampling/task_group_sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698