WPF 查找资源和内存泄漏
有人对隔离 WPF 应用程序中的资源和/或内存泄漏有一些建议吗?
我已经通过在使用应用程序时监控任务管理器中的堆大小来验证我们的应用程序中确实存在一些重大泄漏。我确实下载了内存分析器工具的评估版,玩了一个小时左右,然后继续前进。现在我的评估期已经到期了。在使用它时报告了许多问题,但我没有花时间仔细阅读所有冗长的报告。
最好的工具是什么?我应该在 Memory Profiler 上投入时间和金钱还是选择其他东西。我曾经在 C++ 中使用 BoundsChecker,它很棒,大大减慢了应用程序的速度,但准确地指出了出现问题的位置。
我想要一个工具来识别我们的泄漏源。
Does anyone have some suggestions for issolating resource and/or memory leaks in a WPF application?
I have verified that there does appears to be some significant leaks in our application through the monitoring of heap sizes in Task Manager while using the application. I did download the evaluation of the Memory Profiler tool, played with it for an hour or so and moved on. Now my evaluation period has expired. While using it many issues were reported, but I had not invested the time to wade through all of the verbose report.
What is the best tool for this? Should I invest the time and money on Memory Profiler or go with something else. I used to use BoundsChecker in C++ and it was great, slowed down the application a lot but pinpointed right where you had an issue.
I would like a tool to identify the source of our leaks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
任何 .net 内存分析工具都可以。对于 WPF 特定的内存分析,我们使用 http://msdn.microsoft.com/en-我们/library/aa969767.aspx。
但是我们还可以使用 WinDbg 对 WPF 应用程序进行更好的内存分析......甚至 SOS 也有帮助。您只需要有一种方法来理解它的命令即可。
Any .net memory profiling tool would do. For WPF specific memory profiling we used http://msdn.microsoft.com/en-us/library/aa969767.aspx.
But we could also do better memory profiling of our WPF application using
WinDbg
.... evenSOS
helps. You just need to have a way to understand its commands.