diff options
author | Jacob Appelbaum <jacob@appelbaum.net> | 2009-05-22 23:33:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-05-22 23:33:44 -0400 |
commit | 75f963e9517ba8702fe1ed1d470e28b0462fb3d2 (patch) | |
tree | 1ca1f604bb51ad4d8cebfabf6b6927b8b8b0b8f2 /src/or/main.c | |
parent | 793e97bb2a610dbd4cf8cfb2795f8b680d55a116 (diff) | |
download | tor-75f963e9517ba8702fe1ed1d470e28b0462fb3d2.tar tor-75f963e9517ba8702fe1ed1d470e28b0462fb3d2.tar.gz |
Log the number and size of DNS cache entries on SIGUSR1.
Specifically if you send SIGUSR1, it will add two lines to the log file:
May 22 07:41:59.576 [notice] Our DNS cache has 3364 entries.
May 22 07:41:59.576 [notice] Our DNS cache size is approximately 1022656
bytes.
[tweaked a bit by nickm]
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 69ed12f12..b151b1f66 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1588,6 +1588,7 @@ dumpmemusage(int severity) U64_PRINTF_ARG(rephist_total_alloc), rephist_total_num); dump_routerlist_mem_usage(severity); dump_cell_pool_usage(severity); + dump_dns_mem_usage(severity); buf_dump_freelist_sizes(severity); tor_log_mallinfo(severity); } |