mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Optimize initial memory consumption
This commit is contained in:
parent
eb08b696bf
commit
3f349b8a37
10 changed files with 49 additions and 22 deletions
|
@ -2434,6 +2434,9 @@ void get_memory_usage(uint64_t* total, uint64_t* malloced)
|
|||
|
||||
// In KB.
|
||||
ret_total = r.ru_maxrss * 1024;
|
||||
|
||||
if ( malloced )
|
||||
*malloced = r.ru_ixrss * 1024;
|
||||
#endif
|
||||
|
||||
if ( total )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue