aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tools/ProcStats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ProcStats.cpp b/tools/ProcStats.cpp
index 9c09b5e9b0..51ddf55aa5 100644
--- a/tools/ProcStats.cpp
+++ b/tools/ProcStats.cpp
@@ -13,7 +13,7 @@
int sk_tools::getMaxResidentSetSizeMB() {
struct rusage ru;
getrusage(RUSAGE_SELF, &ru);
- #if defined(SK_BUILD_FOR_MAC)
+ #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
return static_cast<int>(ru.ru_maxrss / 1024 / 1024); // Darwin reports bytes.
#else
return static_cast<int>(ru.ru_maxrss / 1024); // Linux reports kilobytes.