summaryrefslogtreecommitdiffstats
path: root/chrome/test/perf/mem_usage_mac.cc
diff options
context:
space:
mode:
authorpaul@chromium.org <paul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 21:00:40 +0000
committerpaul@chromium.org <paul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 21:00:40 +0000
commit3e39eaddf605708bf70cd138703a91de7e3372e0 (patch)
treeccc9c526d618c1aa91b9672c884413cd96e97bf3 /chrome/test/perf/mem_usage_mac.cc
parent158613cfe50a24f729bf756dd763463799251a11 (diff)
downloadchromium_src-3e39eaddf605708bf70cd138703a91de7e3372e0.zip
chromium_src-3e39eaddf605708bf70cd138703a91de7e3372e0.tar.gz
chromium_src-3e39eaddf605708bf70cd138703a91de7e3372e0.tar.bz2
First part of getting memory_tests running on Mac.
This CL provides the scaffolding for subsequent changes. BUG=16434 (http://crbug.com/16434) TEST=Nothing yet. Review URL: http://codereview.chromium.org/174402 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/perf/mem_usage_mac.cc')
-rw-r--r--chrome/test/perf/mem_usage_mac.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/chrome/test/perf/mem_usage_mac.cc b/chrome/test/perf/mem_usage_mac.cc
new file mode 100644
index 0000000..671c989
--- /dev/null
+++ b/chrome/test/perf/mem_usage_mac.cc
@@ -0,0 +1,28 @@
+// Copyright (c) 2009 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.
+
+#include "chrome/test/perf/mem_usage.h"
+
+#include <mach/mach.h>
+
+#include "base/logging.h"
+
+bool GetMemoryInfo(uint32 process_id,
+ size_t* peak_virtual_size,
+ size_t* current_virtual_size,
+ size_t* peak_working_set_size,
+ size_t* current_working_set_size) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+size_t GetSystemCommitCharge() {
+ NOTIMPLEMENTED();
+ return 0;
+}
+
+void PrintChromeMemoryUsageInfo() {
+ NOTIMPLEMENTED();
+}
+