开发者

Tips/Techniques for tracking down leaks in monotouch programs?

开发者 https://www.devze.com 2023-02-17 15:02 出处:网络
What are folks using to track down memory leaks? I\'开发者_开发百科ve managed via code inspection to figure some problems, but I am at a loss to what can I do next / how am I going to manage issues wh

What are folks using to track down memory leaks? I'开发者_开发百科ve managed via code inspection to figure some problems, but I am at a loss to what can I do next / how am I going to manage issues when my program gets bigger. I know what type of object I'm leaking, but I don't know what is keeping it alive.

In windows .NET, I would just fire up SOS in windbg and via a combination of !dumpheap and !gcroot I would be able to find out what was leaking and who was holding live references to the objects that were not getting collected.


We are working to integrate the new Mono profiler (http://mono-project.com/Profile) into MonoTouch's user interface to give you access to this kind of information.


MonoTouch 5.2.3 is out today and it has the profiler in it. Very useful!

0

精彩评论

暂无评论...
验证码 换一张
取 消