I've sent mail off to the perftools folks at Apple, but thought someone here might have some good thoughts on how to fix this:
I've had great luck over the years using Sampler, and to a lesser degree, Shark to find memory leaks in our Cocoa code here. Unfortunately, I'm having no luck lately, and I'm not sure what I'm doing wrong.
I've got a Quad G5 w/4GB of RAM running OSX.4.5 with XCode 2.2.1 and a freshly reinstalled (after running the CHUD remover) CHUD 4.3.2-1.
I start up my app under the debugger in XCode and attach to it with Sampler. If I do "Timed Samples" it seems to work fine. When I switch over to "Memory Allocations" and do Start recording and then do stop, it shows me nothing. Doesn't matter if I do Show only active blocks or not, same problem.
If I fire up Shark, and select "Malloc Trace" and then start and then stop, I get:
ERROR No samples take. [MallocDataSource]
other Shark functions work fine.
I don't think I have anything funny installed on this machine, and I'm at a loss (and I really need to track down this memory leak!).
Any help would be appreciated...
--> Michael B. Johnson, PhD --> MPG Lead --> Pixar Animation Studios
|