aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-10-23 18:42:46 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-10-23 18:42:46 +0000
commit1d27013b9440d3ac08c90b1de2c6a28d4a42ada7 (patch)
tree2aee80048c9615a438fe362f79a8fb5c3b22eeee /src/statistics
parentf6d0ac3108df6cc62ef86deec97d579d23e9eaac (diff)
-add option to make expensive heap stat gathering optional
git-svn-id: https://gnunet.org/svn/gnunet@24495 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/statistics_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c
index 79d9604c7a..0f4149ead2 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -271,6 +271,7 @@ struct GNUNET_STATISTICS_Handle
static void
update_memory_statistics (struct GNUNET_STATISTICS_Handle *h)
{
+#if ENABLE_HEAP_STATISTICS
uint64_t current_heap_size = 0;
uint64_t current_rss = 0;
@@ -304,6 +305,7 @@ update_memory_statistics (struct GNUNET_STATISTICS_Handle *h)
h->peak_rss = current_rss;
GNUNET_STATISTICS_set (h, "# peak resident set size", current_rss, GNUNET_NO);
}
+#endif
}