Charlie Price
Charlie Price

Reputation: 1376

Get allocated memory size in iOS

Is there a programatic way to get the size of allocated memory, either the total or just data, in iOS 5 and/or iOS 6?

I'm running into memory problems and I would like to understand the memory implications of some parallel image processing I'm doing as it is happening.

Upvotes: 0

Views: 215

Answers (1)

Malloc
Malloc

Reputation: 16266

You can use Instruments for that purpose.

Instruments has a template called Time Profile which allows you to find which parts of your code are consuming the highest amount of time, you can track memory allocated in the go also.

Here is a good start if you are in the debut of your profiling experience.

Upvotes: 6

Related Questions