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

Unified Diff: ios/chrome/browser/memory/memory_metrics.h

Issue 1057933002: [iOS] Upstream //ios/chrome/browser/memory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upstreamNet
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/memory/memory_metrics.h
diff --git a/ios/chrome/browser/memory/memory_metrics.h b/ios/chrome/browser/memory/memory_metrics.h
new file mode 100644
index 0000000000000000000000000000000000000000..7903848aacaeb96cb1f3ebb8b12c6e0dffde5fac
--- /dev/null
+++ b/ios/chrome/browser/memory/memory_metrics.h
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_MEMORY_MEMORY_METRICS_H_
+#define IOS_CHROME_BROWSER_MEMORY_MEMORY_METRICS_H_
+
+#include "base/basictypes.h"
+
+namespace memory_util {
+// "Physical Free" memory metric. This corresponds to the "Physical Memory Free"
+// value reported by the Memory Monitor in Instruments.
+uint64 GetFreePhysicalBytes();
+
+// "Real Memory Used" memory metric. This corresponds to the "Real Memory" value
+// reported for the app by the Memory Monitor in Instruments.
+uint64 GetRealMemoryUsedInBytes();
+
+// "Xcode Gauge" memory metric. This corresponds to the "Memory" value reported
+// for the app by the Debug Navigator in Xcode. Only supported in iOS 7 and
+// later.
+uint64 GetInternalVMBytes();
+
+// "Dirty VM" memory metric. This corresponds to the "Dirty Size" value reported
+// for the app by the VM Tracker in Instruments.
+uint64 GetDirtyVMBytes();
+} // namespace memory_util
+
+#endif // IOS_CHROME_BROWSER_MEMORY_MEMORY_METRICS_H_

Powered by Google App Engine
This is Rietveld 408576698