Running leaks in an iOS application causes an error "Cannot allocate mmap"

I created an iOS application and must check for software bugs in the application. (Therefore, not using tools directly)

For the above, I use the leak command as follows:

MallocStackLogging = 1 leaks -nocontext

At one point, this worked without problems. But lately, I started getting errors, and leak commands give a different number of leaks every time.

Has anyone encountered a similar problem?

+4
source share
1 answer

You can programmatically find current memory statistics using the vm_statics object. Follow these links to find the vm_statistics implementation:

1)

http://gamesfromwithin.com/whered-that-memory-go

2)

http://landonf.bikemonkey.org/code/iphone/Determining_Available_Memory.20081203.html

0
source

All Articles