aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-11-19 17:56:06 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2015-12-11 18:26:53 +0100
commit74270c8c86ac8a25e7d70ee84b1686afdce32776 (patch)
tree28b2301f50a1e681536e1ef62f31c336fe3eeeeb /src
parentae37090e65dce94c86eab7d1927da2917f31af16 (diff)
downloadstrongswan-74270c8c86ac8a25e7d70ee84b1686afdce32776.tar.bz2
strongswan-74270c8c86ac8a25e7d70ee84b1686afdce32776.tar.xz
vici: Don't report memory usage via leak-detective
This slowed down the `swanctl --stats` calls in the test scenarios significantly, with not much added value.
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/vici/vici_query.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/libcharon/plugins/vici/vici_query.c b/src/libcharon/plugins/vici/vici_query.c
index ef4d4e3dc..86440dfc4 100644
--- a/src/libcharon/plugins/vici/vici_query.c
+++ b/src/libcharon/plugins/vici/vici_query.c
@@ -1020,18 +1020,6 @@ CALLBACK(version, vici_message_t*,
return b->finalize(b);
}
-/**
- * Callback function for memusage summary
- */
-CALLBACK(sum_usage, void,
- vici_builder_t *b, int count, size_t bytes, int whitelisted)
-{
- b->begin_section(b, "mem");
- b->add_kv(b, "total", "%zu", bytes);
- b->add_kv(b, "allocs", "%d", count);
- b->end_section(b);
-}
-
CALLBACK(stats, vici_message_t*,
private_vici_query_t *this, char *name, u_int id, vici_message_t *request)
{
@@ -1093,12 +1081,7 @@ CALLBACK(stats, vici_message_t*,
enumerator->destroy(enumerator);
b->end_list(b);
- if (lib->leak_detective)
- {
- lib->leak_detective->usage(lib->leak_detective, NULL, sum_usage, b);
- }
#ifdef WIN32
- else
{
DWORD lasterr = ERROR_INVALID_HANDLE;
HANDLE heaps[32];