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