diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-07 19:02:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-07 19:02:58 +0000 |
commit | 76cc98f7b32077470b413b6efce1b219906bf758 (patch) | |
tree | 206fb833e5dc4506f6d446ec3f946484469c8406 /src/include/platform.h | |
parent | a60b958f984d08525b636a2c7eae564ebec54ae6 (diff) | |
download | gnunet-76cc98f7b32077470b413b6efce1b219906bf758.tar.gz gnunet-76cc98f7b32077470b413b6efce1b219906bf758.zip |
-add logic to measure heap size for all processes that use statistics, reduce statistics, topology, nse and resolver heap usage using the same trick we used for arm
Diffstat (limited to 'src/include/platform.h')
-rw-r--r-- | src/include/platform.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/platform.h b/src/include/platform.h index d0591b107..8bd2e6706 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -111,6 +111,9 @@ | |||
111 | #ifdef WINDOWS | 111 | #ifdef WINDOWS |
112 | #include <malloc.h> /* for alloca(), on other OSes it's in stdlib.h */ | 112 | #include <malloc.h> /* for alloca(), on other OSes it's in stdlib.h */ |
113 | #endif | 113 | #endif |
114 | #ifdef HAVE_MALLOC_H | ||
115 | #include <malloc.h> /* for mallinfo on GNU */ | ||
116 | #endif | ||
114 | #ifndef _MSC_VER | 117 | #ifndef _MSC_VER |
115 | #include <unistd.h> /* KLB_FIX */ | 118 | #include <unistd.h> /* KLB_FIX */ |
116 | #endif | 119 | #endif |