aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/statistics_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-23 18:42:46 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-23 18:42:46 +0000
commit798b1b3431ccf345a93bd01413a64d272e530c6c (patch)
tree2aee80048c9615a438fe362f79a8fb5c3b22eeee /src/statistics/statistics_api.c
parenta25686672d1ca40a856292ee65f45e0e736a7a8f (diff)
downloadgnunet-798b1b3431ccf345a93bd01413a64d272e530c6c.tar.gz
gnunet-798b1b3431ccf345a93bd01413a64d272e530c6c.zip
-add option to make expensive heap stat gathering optional
Diffstat (limited to 'src/statistics/statistics_api.c')
-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 79d9604c7..0f4149ead 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -271,6 +271,7 @@ struct GNUNET_STATISTICS_Handle
271static void 271static void
272update_memory_statistics (struct GNUNET_STATISTICS_Handle *h) 272update_memory_statistics (struct GNUNET_STATISTICS_Handle *h)
273{ 273{
274#if ENABLE_HEAP_STATISTICS
274 uint64_t current_heap_size = 0; 275 uint64_t current_heap_size = 0;
275 uint64_t current_rss = 0; 276 uint64_t current_rss = 0;
276 277
@@ -304,6 +305,7 @@ update_memory_statistics (struct GNUNET_STATISTICS_Handle *h)
304 h->peak_rss = current_rss; 305 h->peak_rss = current_rss;
305 GNUNET_STATISTICS_set (h, "# peak resident set size", current_rss, GNUNET_NO); 306 GNUNET_STATISTICS_set (h, "# peak resident set size", current_rss, GNUNET_NO);
306 } 307 }
308#endif
307} 309}
308 310
309 311