summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-04-19 18:47:04 +0000
committerNick Mathewson <nickm@torproject.org>2007-04-19 18:47:04 +0000
commit7392464b8805950be47fddf160efef3d52df7444 (patch)
treeca07050a3001de9ee7ed7df58b670300b4f8a452 /src/or/relay.c
parentbf4f0539cf1163c872574055fe69d67f06a5f87f (diff)
downloadtor-7392464b8805950be47fddf160efef3d52df7444.tar.gz
tor-7392464b8805950be47fddf160efef3d52df7444.zip
r12456@catbus: nickm | 2007-04-19 14:47:01 -0400
Make dumpmemusage() dump cell pool usage information. svn:r9991
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 1f949e5a3a..a5bea0a717 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -1518,6 +1518,11 @@ packed_cell_alloc(void)
{
return mp_pool_get(cell_pool);
}
+void
+dump_cell_pool_usage(int severity)
+{
+ mp_pool_log_status(cell_pool, severity);
+}
#else
/* ENABLE_CELL_POOL isn't defined: here are some stubs to use tor_malloc()
* and tor_free() instead. */
@@ -1547,6 +1552,11 @@ packed_cell_alloc(void)
{
return tor_malloc(sizeof(packed_cell_t));
}
+void
+dump_cell_pool_usage(int severity)
+{
+ (void) severity;
+}
#endif
/** Allocate a new copy of packed <b>cell</b>. */