| OLD | NEW |
| 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_CHROMEOS_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_ | 5 #ifndef CHROME_BROWSER_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_ | 6 #define CHROME_BROWSER_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_ |
| 7 | 7 |
| 8 namespace chromeos { | 8 namespace memory { |
| 9 | 9 |
| 10 // The type of memory UMA stats to be recorded in RecordMemoryStats. | 10 // The type of memory UMA stats to be recorded in RecordMemoryStats. |
| 11 enum RecordMemoryStatsType { | 11 enum RecordMemoryStatsType { |
| 12 // When a tab was discarded. | 12 // When a tab was discarded. |
| 13 RECORD_MEMORY_STATS_TAB_DISCARDED, | 13 RECORD_MEMORY_STATS_TAB_DISCARDED, |
| 14 | 14 |
| 15 // Right after the renderer for contents was killed. | 15 // Right after the renderer for contents was killed. |
| 16 RECORD_MEMORY_STATS_CONTENTS_OOM_KILLED, | 16 RECORD_MEMORY_STATS_CONTENTS_OOM_KILLED, |
| 17 | 17 |
| 18 // Right after the renderer for extensions was killed. | 18 // Right after the renderer for extensions was killed. |
| 19 RECORD_MEMORY_STATS_EXTENSIONS_OOM_KILLED, | 19 RECORD_MEMORY_STATS_EXTENSIONS_OOM_KILLED, |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 void RecordMemoryStats(RecordMemoryStatsType type); | 22 void RecordMemoryStats(RecordMemoryStatsType type); |
| 23 | 23 |
| 24 } // namespace chromeos | 24 } // namespace memory |
| 25 | 25 |
| 26 #endif // CHROME_BROWSER_CHROMEOS_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_ | 26 #endif // CHROME_BROWSER_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_ |
| OLD | NEW |