aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/ProcStats.cpp
diff options
context:
space:
mode:
authorGravatar stephana <stephana@google.com>2015-04-09 07:57:54 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-09 07:57:54 -0700
commit195f62d07d6e996d188b9b2065da073f665a7c5f (patch)
tree9afc0dd02f92c0b17aea916fe628556de07a8166 /tools/ProcStats.cpp
parent29b1afc169576cf5e708e46b74313b5666e66249 (diff)
BUG=skia:
Diffstat (limited to 'tools/ProcStats.cpp')
-rw-r--r--tools/ProcStats.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ProcStats.cpp b/tools/ProcStats.cpp
index 5c41213d4d..fc9da23011 100644
--- a/tools/ProcStats.cpp
+++ b/tools/ProcStats.cpp
@@ -7,7 +7,7 @@
#include "ProcStats.h"
-#if defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_ANDROID)
+#if defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) || defined(SK_BUILD_FOR_ANDROID)
#include <sys/resource.h>
int sk_tools::getMaxResidentSetSizeMB() {
struct rusage ru;
@@ -30,7 +30,7 @@
int sk_tools::getMaxResidentSetSizeMB() { return -1; }
#endif
-#if defined(SK_BUILD_FOR_MAC)
+#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
#include <mach/mach.h>
int sk_tools::getCurrResidentSetSizeMB() {
mach_task_basic_info info;