From ffc9643986bc83429c78910135614e830a131a7d Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Fri, 26 Feb 2021 16:08:18 +0000 Subject: eventlog: Add BLOCKS_SIZE event The BLOCKS_SIZE event reports the size of the currently allocated blocks in bytes. It is like the HEAP_SIZE event, but reports about the blocks rather than megablocks. You can work out the current heap fragmentation by looking at the difference between HEAP_SIZE and BLOCKS_SIZE. Fixes #19357 --- includes/rts/EventLogFormat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'includes') diff --git a/includes/rts/EventLogFormat.h b/includes/rts/EventLogFormat.h index 37b7bc363d..b8b261ae3d 100644 --- a/includes/rts/EventLogFormat.h +++ b/includes/rts/EventLogFormat.h @@ -128,6 +128,7 @@ */ #define EVENT_MEM_RETURN 90 /* (cap, current_mblocks, needed_mblocks, returned_mblocks) */ +#define EVENT_BLOCKS_SIZE 91 /* (heapcapset, size_bytes) */ /* Range 100 - 139 is reserved for Mercury. */ -- cgit v1.2.1