Quickies

[categories] [index] [all (527)] [latest]

Cocoa Foundation
  1. #include <Foundation/NSDebug.h>
    
    [NSAutoreleasePool showPools];
    

    the following function performs the same action:

    _CFAutoreleasePoolPrintPools();
    

    output:

    - -- ---- -------- Autorelease Pools -------- ---- -- -
    ==== top of stack ================
      0x583f3c0 (__NSDate)
      0x583f350 (Measure)
      0x5a24960 (UIWindow) (...)
    ==== top of pool, 23 objects ================
    ==== top of pool, 0 objects ================
    ==== top of pool, 0 objects ================
    - -- ---- -------- ----------------- -------- ---- -- -