So after running my Objective-C application for about 8 hours, eventually my machine WILL display this error message. But after 24 hours using Instruments, it has only completed about 1% of what the app can do in 8 hours without instruments.
My application basically takes input geometry and creates a navigational mesh.
My question: How can I figure out where my issue is? I'm sure somewhere in my application I'm requesting memory and never freeing it. I ran analyze, which found one leak, but not significant and I've fixed it.
I'm running Instruments right now for allocations/leaks but after 16 minutes I don't see anything glaring (I'm going to let it keep going).
Here is a snapshot of where it's at thus far:
Anyone have any ideas on how else I can debug this? I'd like to be able to run this for about 20 hours so it can complete vs. it inevitably dying :/
Thanks in advance!
You be leaking the memory like a champ!
turn on "only track live allocations" in the Allocations instrument
turn on "track reference counting events" (or whatever it is called)
re-run your session and sort by the "Overall Bytes" column
start at the top, the most memory hungry allocation, and click through the little arrow to see where all those allocations are coming from, continue down the list...
It is a lot like Heapshot analysis and, thus, this weblog article I wrote a while ago might be helpful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With