aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-07 19:02:58 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-07 19:02:58 +0000
commit76cc98f7b32077470b413b6efce1b219906bf758 (patch)
tree206fb833e5dc4506f6d446ec3f946484469c8406 /src/include
parenta60b958f984d08525b636a2c7eae564ebec54ae6 (diff)
downloadgnunet-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')
-rw-r--r--src/include/platform.h3
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