Memory use

  • Is (Are) there functions that report application memory usage, as a whole, on the stack, in the autorelease pool, in the heap?

    Charlie Dickman
    <3tothe4th...>
  • On May 28, 2012, at 3:20 PM, Charlie Dickman wrote:

    > Is (Are) there functions that report application memory usage, as a whole, on the stack, in the autorelease pool, in the heap?

    Not easily-used ones. It's not something that processes other than diagnostic or admin tools usually care about. You can use the Instruments app, or command-line tools like 'heap' and 'leaks', to find this out. (Questions about those tools should go to the xcode-users list.)

    If you _really_ want to know what to call, the usual answer is to go look up the source to the 'top' tool in the Darwin open-source repository, since it's the main client of those APIs whose source is accessible. (Questions about those APIs would best be sent to the darwin-userlevel mailing list, not here.)

    —Jens
previous month may 2012 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today