mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
track os_commit and os_decommit
This commit is contained in:
@@ -213,6 +213,9 @@ os_commit(void *ptr, U64 size)
|
|||||||
// wine does not implement these functions
|
// wine does not implement these functions
|
||||||
w32_rio_functions.RIODeregisterBuffer(w32_rio_functions.RIORegisterBuffer(ptr, size));
|
w32_rio_functions.RIODeregisterBuffer(w32_rio_functions.RIORegisterBuffer(ptr, size));
|
||||||
}
|
}
|
||||||
|
#if PROFILE_TELEMETRY
|
||||||
|
tmAlloc(0, ptr, size / 1024, "Win32 Commit");
|
||||||
|
#endif
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,6 +223,9 @@ internal void
|
|||||||
os_decommit(void *ptr, U64 size)
|
os_decommit(void *ptr, U64 size)
|
||||||
{
|
{
|
||||||
VirtualFree(ptr, size, MEM_DECOMMIT);
|
VirtualFree(ptr, size, MEM_DECOMMIT);
|
||||||
|
#if PROFILE_TELEMETRY
|
||||||
|
tmFree(0, ptr);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void
|
internal void
|
||||||
|
|||||||
Reference in New Issue
Block a user