mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[malloc] Track maximum heap usage
Track the current and maximum heap usage, and display the maximum during shutdown when DEBUG=malloc is enabled. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -22,6 +22,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
#include <valgrind/memcheck.h>
|
||||
|
||||
extern size_t freemem;
|
||||
extern size_t usedmem;
|
||||
extern size_t maxusedmem;
|
||||
|
||||
extern void * __malloc alloc_memblock ( size_t size, size_t align,
|
||||
size_t offset );
|
||||
|
||||
Reference in New Issue
Block a user