Tor
0.4.6.0-alpha-dev
|
Go to the source code of this file.
Functions | |
void | tor_log_mallinfo (int severity) |
int | get_total_system_memory (size_t *mem_out) |
int get_total_system_memory | ( | size_t * | mem_out | ) |
Try to find out how much physical memory the system has. On success, return 0 and set *mem_out to that value. On failure, return -1.
Definition at line 151 of file meminfo.c.
Referenced by have_enough_mem_for_dircache().
void tor_log_mallinfo | ( | int | severity | ) |
Call the platform malloc info function, and dump the results to the log at level severity. If no such function exists, do nothing.
Definition at line 44 of file meminfo.c.
Referenced by dumpmemusage().