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