If a 64 bit counter in the GC's allocator was added to count bytes of memory allocated, then the existing profiling code could be trivially adjusted to read that counter rather than the elapsed time counter.
This would generate a nice report of memory consumption by function.
Comment #1 by robert.schadek — 2024-12-13T18:05:24Z