Improved memory usage reporting mechanisms

This commit is contained in:
Richard Frith-Macdonald 2019-08-08 17:20:25 +01:00
parent 2ca4f74af5
commit dd36855923
21 changed files with 404 additions and 230 deletions

View file

@ -53,6 +53,7 @@ extern "C" {
*
* Public functions:
* GSDebugAllocationActive()
* GSDebugAllocationBytes()
* GSDebugAllocationCount()
* GSDebugAllocationTotal()
* GSDebugAllocationPeak()
@ -100,6 +101,16 @@ GS_EXPORT void GSDebugAllocationRemove(Class c, id o);
*/
GS_EXPORT BOOL GSDebugAllocationActive(BOOL active);
/**
* This function activates or deactivates byte counting for allocation.<br />
* Returns the previous state.<br />
* You may call this function to activate additional checks to see how
* much memory is allocated to hold each object allocated. When this is
* enabled, listing the allocated objects will also list the number of bytes
* of heap memory allocated to hold the objects.<br />
*/
GS_EXPORT BOOL GSDebugAllocationBytes(BOOL active);
/**
* <p>
* Returns the number