Reputation: 3045
I just started using Instruments, a nice little tool for testing memory allocations/ leaks and all that great stuff. But I'm pretty confused at how it works... Ive looked for tutorials explaining how to work with it, but no tutorials explained what to do with it.
I'll try to explain this: I have it set up to whenever I run my Xcode app, Instruments tracks everything. But the stuff that instruments record makes no sense to me.
There was one leak discovered, and after that it started leaking bytes. It says the leaked object is _NSCFString and some other stuff like that. Here is a screenshot
My question is, how do I interpret this? If there is a tutorial out there that explain this, please leave as an answer, or explain it to me.
Upvotes: 10
Views: 5410
Reputation: 7720
The best way to learn how to use Instruments is to watch the iOS/macOS Development Essential/Advanced/Foundation videos as well as the WWDC session videos on the topic.
You can find a list at past WWDC Session Videos to watch. They do not require a developer account to access.
iPhone Foundation Development Videos:
WWDC 2009:
WWDC 2010:
WWDC 2011:
WWDC 2012:
WWDC 2014:
WWDC 2015:
WWDC 2016:
WWDC 2018:
WWDC 2019:
2020 Tech Talks:
Upvotes: 28