mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Improved memory usage reporting mechanisms
This commit is contained in:
parent
2ca4f74af5
commit
dd36855923
21 changed files with 404 additions and 230 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue