OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 IOS_CHROME_BROWSER_MEMORY_MEMORY_METRICS_H_ |
| 6 #define IOS_CHROME_BROWSER_MEMORY_MEMORY_METRICS_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 10 namespace memory_util { |
| 11 // "Physical Free" memory metric. This corresponds to the "Physical Memory Free" |
| 12 // value reported by the Memory Monitor in Instruments. |
| 13 uint64 GetFreePhysicalBytes(); |
| 14 |
| 15 // "Real Memory Used" memory metric. This corresponds to the "Real Memory" value |
| 16 // reported for the app by the Memory Monitor in Instruments. |
| 17 uint64 GetRealMemoryUsedInBytes(); |
| 18 |
| 19 // "Xcode Gauge" memory metric. This corresponds to the "Memory" value reported |
| 20 // for the app by the Debug Navigator in Xcode. Only supported in iOS 7 and |
| 21 // later. |
| 22 uint64 GetInternalVMBytes(); |
| 23 |
| 24 // "Dirty VM" memory metric. This corresponds to the "Dirty Size" value reported |
| 25 // for the app by the VM Tracker in Instruments. |
| 26 uint64 GetDirtyVMBytes(); |
| 27 } // namespace memory_util |
| 28 |
| 29 #endif // IOS_CHROME_BROWSER_MEMORY_MEMORY_METRICS_H_ |
OLD | NEW |