On Jul 19, 2013, at 10:45 PM, Jerry Krinock <je...@ieee.org> wrote:

> The 'leaks' tool has identified several NSString objects that my app is 
> leaking.  But neither 'leaks' nor Instruments > Leaks identifies the 
> responsible frame in my code. The 'leaks' tool gives me the string value, but 
> I still need more clues to find it in my code.

If you setenv 'MallocStackLogging' in your process, the leaks tool’s output 
will include a backtrace of the object’s allocation. [See ‘man malloc’ for 
other useful flags.]

(Warning: for obvious reasons, this environment variable will greatly increase 
the memory usage of your program. Don’t forget to turn it off again afterwards!)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to