From c90b4d82b7f98e8c470ed3199e6f59c0082c095a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 22 Mar 2017 20:01:25 +0200 Subject: [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 --- src/include/ipxe/malloc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/ipxe/malloc.h') diff --git a/src/include/ipxe/malloc.h b/src/include/ipxe/malloc.h index dd158b8e6..1878978fd 100644 --- a/src/include/ipxe/malloc.h +++ b/src/include/ipxe/malloc.h @@ -22,6 +22,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include 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 ); -- cgit v1.2.3-55-g7522