Add Emscripten heap memory size and max limit stats to profiler

This commit is contained in:
Wojtek Figat
2026-03-16 22:29:19 +01:00
parent e10d784e83
commit 3949cba83c
5 changed files with 24 additions and 0 deletions

View File

@@ -489,4 +489,11 @@ void ProfilerMemory::OnGroupUpdate(Groups group, int64 sizeDelta, int64 countDel
UPDATE_PEEK(group);
}
void ProfilerMemory::OnGroupSet(Groups group, int64 size, int64 count)
{
Platform::AtomicStore(&GroupMemory[(int32)group], size);
Platform::AtomicStore(&GroupMemoryCount[(int32)group], count);
UPDATE_PEEK(group);
}
#endif