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

Unified Diff: chrome/browser/memory/system_memory_stats_recorder_linux.cc

Issue 1214803006: [Memory] Add system_memory_stats_recorder_win.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge issue in gyp and line wrapping. 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/memory/system_memory_stats_recorder_linux.cc
diff --git a/chrome/browser/memory/system_memory_stats_recorder_linux.cc b/chrome/browser/memory/system_memory_stats_recorder_linux.cc
index f8e7d45eeea9cf180f141fc65ae5d7e0686735b7..fbec6ef4d5c88ba56991a57521a18e427a8023b0 100644
--- a/chrome/browser/memory/system_memory_stats_recorder_linux.cc
+++ b/chrome/browser/memory/system_memory_stats_recorder_linux.cc
@@ -9,12 +9,7 @@
namespace memory {
-// Record a size in megabytes, over a potential interval up to 32 GB.
-#define UMA_HISTOGRAM_AVAILABLE_MEGABYTES(name, sample) \
- UMA_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 32768, 50)
-
-// Record a size in megabytes, a potential interval from 250MB up to
-// 32 GB.
+// Record a size in megabytes, a potential interval from 250MB up to 32 GB.
#define UMA_HISTOGRAM_ALLOCATED_MEGABYTES(name, sample) \
UMA_HISTOGRAM_CUSTOM_COUNTS(name, sample, 250, 32768, 50)
@@ -66,8 +61,8 @@ void RecordMemoryStats(RecordMemoryStatsType type) {
#endif
UMA_HISTOGRAM_ALLOCATED_MEGABYTES("Tabs.Discard.MemAllocatedMB",
mem_allocated_mb);
- UMA_HISTOGRAM_AVAILABLE_MEGABYTES("Tabs.Discard.MemAvailableMB",
- mem_available_mb);
+ UMA_HISTOGRAM_LARGE_MEMORY_MB("Tabs.Discard.MemAvailableMB",
+ mem_available_mb);
break;
}
case RECORD_MEMORY_STATS_CONTENTS_OOM_KILLED: {
@@ -79,8 +74,8 @@ void RecordMemoryStats(RecordMemoryStatsType type) {
#endif
UMA_HISTOGRAM_ALLOCATED_MEGABYTES(
"Memory.OOMKill.Contents.MemAllocatedMB", mem_allocated_mb);
- UMA_HISTOGRAM_AVAILABLE_MEGABYTES(
- "Memory.OOMKill.Contents.MemAvailableMB", mem_available_mb);
+ UMA_HISTOGRAM_LARGE_MEMORY_MB("Memory.OOMKill.Contents.MemAvailableMB",
+ mem_available_mb);
break;
}
case RECORD_MEMORY_STATS_EXTENSIONS_OOM_KILLED: {
@@ -92,8 +87,8 @@ void RecordMemoryStats(RecordMemoryStatsType type) {
#endif
UMA_HISTOGRAM_ALLOCATED_MEGABYTES(
"Memory.OOMKill.Extensions.MemAllocatedMB", mem_allocated_mb);
- UMA_HISTOGRAM_AVAILABLE_MEGABYTES(
- "Memory.OOMKill.Extensions.MemAvailableMB", mem_available_mb);
+ UMA_HISTOGRAM_LARGE_MEMORY_MB("Memory.OOMKill.Extensions.MemAvailableMB",
+ mem_available_mb);
break;
}
}
« no previous file with comments | « chrome/browser/memory/system_memory_stats_recorder.h ('k') | chrome/browser/memory/system_memory_stats_recorder_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698