Index: tools/ProcStats.cpp |
diff --git a/tools/ProcStats.cpp b/tools/ProcStats.cpp |
index 5c41213d4df2513f9196adc1c747fe93f00123c4..fc9da230114d9aab7ee81659a01445dd405807d9 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; |