1

I'm getting mixed info regarding the GRAPH of the Object Alloc tool in Instruments...

On one hand, I've heard several people claim (<-- see thread) that the graph doesn't take deallocations into account and it will always rise. Yet when I use it myself, I can see that it sometimes DOES go down, particularly when I release a resource. So, can someone please tell me what the heck I am looking at when I see the graph in the Object Alloc tool?

And if you, too, are going to re-assert the well-spread claim that the graph indeed does not take deallocations into account, please do us laypeople a favor and be very thorough in your explanation -- taking special care to address exactly what you assume the graph to be doing when it does go DOWN, and it does.

*Refer to the answer in this thread:
Checking memory allocation in Instruments

Community
  • 1
  • 1
m0rtimer
  • 2,023
  • 1
  • 25
  • 31

1 Answers1

1

It depends entirely on how you configure the allocations instrument. If you click the little (i) on the Allocations instrument, you'll see a configuration sheet like the one below.

If you only want to track live allocations, then turn that on! If you want to record every last retain/release (very useful for figuring out zombies and over-retains), you can turn that on, too!

It even has filtration; filter down to just your objects, if you want.

enter image description here

bbum
  • 162,346
  • 23
  • 271
  • 359
  • Can't find the *"little (i)"* in Instruments 8.3.2 but found the same settings in `Pull Down Menu > File > Recording Options`. – Pang Jul 19 '17 at 10:19