[malloc] Track maximum heap usage
authorMichael Brown <mcb30@ipxe.org>
Wed, 22 Mar 2017 18:01:25 +0000 (20:01 +0200)
committerMichael Brown <mcb30@ipxe.org>
Wed, 22 Mar 2017 18:01:25 +0000 (20:01 +0200)
commitc90b4d82b7f98e8c470ed3199e6f59c0082c095a
treedbc4e45d85e6c9d12fdd3eaf42be7ef357d1b82d
parent65a3518013ec9ae97c9eb824cb89452111f8a7c0
[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>
src/core/malloc.c
src/include/ipxe/malloc.h