memory usage interrogation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38799 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-07-15 14:14:21 +00:00
parent 1ab490d19a
commit 841ddf78e0
17 changed files with 428 additions and 16 deletions

View file

@ -571,6 +571,16 @@ uint32_t
GSPrivateFinishHash(uint32_t s0, uint32_t s1, uint32_t totalLength)
GS_ATTRIB_PRIVATE;
@class NSHashTable;
/* If 'self' is not a member of 'exclude', adds to the hash
* table and returns the memory footprint of 'self' assuming
* it contains no pointers and has no extra memory allocated.
* Otherwise returns 0.
*/
NSUInteger
GSPrivateMemorySize(NSObject *self, NSHashTable *exclude)
GS_ATTRIB_PRIVATE;
/* Return the current thread ID as an NSUInteger.
* Ideally, we use the operating-system's notion of a thread ID so
* that external process monitoring software will be using the same