diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 09:44:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 12:21:52 -0400 |
commit | 0362cdc169a785a386d3c60d354cd34fafde5770 (patch) | |
tree | b0a8a876f4b6996ce73e351dc36884f348286b00 /src/common/util.c | |
parent | 973afcc40b52d71bfb1a1285806977fee9b843f6 (diff) | |
download | tor-0362cdc169a785a386d3c60d354cd34fafde5770.tar.gz tor-0362cdc169a785a386d3c60d354cd34fafde5770.zip |
Move fd and memory-info functions.
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/common/util.c b/src/common/util.c index 135af77c68..5d1d91153c 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -99,30 +99,6 @@ /* ===== * Memory management * ===== */ - -DISABLE_GCC_WARNING(aggregate-return) -/** Call the platform malloc info function, and dump the results to the log at - * level <b>severity</b>. If no such function exists, do nothing. */ -void -tor_log_mallinfo(int severity) -{ -#ifdef HAVE_MALLINFO - struct mallinfo mi; - memset(&mi, 0, sizeof(mi)); - mi = mallinfo(); - tor_log(severity, LD_MM, - "mallinfo() said: arena=%d, ordblks=%d, smblks=%d, hblks=%d, " - "hblkhd=%d, usmblks=%d, fsmblks=%d, uordblks=%d, fordblks=%d, " - "keepcost=%d", - mi.arena, mi.ordblks, mi.smblks, mi.hblks, - mi.hblkhd, mi.usmblks, mi.fsmblks, mi.uordblks, mi.fordblks, - mi.keepcost); -#else /* !(defined(HAVE_MALLINFO)) */ - (void)severity; -#endif /* defined(HAVE_MALLINFO) */ -} -ENABLE_GCC_WARNING(aggregate-return) - /* ===== * Math * ===== */ |