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

Side by Side Diff: components/memory_pressure/memory_pressure_stats_collector.cc

Issue 2293583002: Change includes of histogram.h to histogram_macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #include "components/memory_pressure/memory_pressure_stats_collector.h" 5 #include "components/memory_pressure/memory_pressure_stats_collector.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "base/time/tick_clock.h" 12 #include "base/time/tick_clock.h"
13 13
14 namespace memory_pressure { 14 namespace memory_pressure {
15 15
16 namespace { 16 namespace {
17 17
18 using MemoryPressureLevel = MemoryPressureListener::MemoryPressureLevel; 18 using MemoryPressureLevel = MemoryPressureListener::MemoryPressureLevel;
19 19
20 // Converts a memory pressure level to an UMA enumeration value. 20 // Converts a memory pressure level to an UMA enumeration value.
21 MemoryPressureLevelUMA MemoryPressureLevelToUmaEnumValue( 21 MemoryPressureLevelUMA MemoryPressureLevelToUmaEnumValue(
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void MemoryPressureStatsCollector::ReportLevelChange( 149 void MemoryPressureStatsCollector::ReportLevelChange(
150 MemoryPressureLevel old_pressure_level, 150 MemoryPressureLevel old_pressure_level,
151 MemoryPressureLevel new_pressure_level) { 151 MemoryPressureLevel new_pressure_level) {
152 UMA_HISTOGRAM_ENUMERATION("Memory.PressureLevelChange", 152 UMA_HISTOGRAM_ENUMERATION("Memory.PressureLevelChange",
153 MemoryPressureLevelChangeToUmaEnumValue( 153 MemoryPressureLevelChangeToUmaEnumValue(
154 old_pressure_level, new_pressure_level), 154 old_pressure_level, new_pressure_level),
155 UMA_MEMORY_PRESSURE_LEVEL_CHANGE_COUNT); 155 UMA_MEMORY_PRESSURE_LEVEL_CHANGE_COUNT);
156 } 156 }
157 157
158 } // namespace memory_pressure 158 } // namespace memory_pressure
OLDNEW
« no previous file with comments | « components/history/core/browser/web_history_service.cc ('k') | components/metrics/profiler/tracking_synchronizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698