且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用“内存使用情况”报告查找内存泄漏

更新时间:2023-11-09 23:08:52

"根和引用类型的路径"窗格显示引用所选实例的对象以及所选实例引用的类型。但它没有提供我们可以直接使用源代码的功能。
  当调试器在拍摄快照时停止时,您可以将鼠标悬停在"值"单元格上以显示对象的值工具提示:

The Paths to Root and Referenced Types pane display the objects that reference the selected instance and the types that the selected instance references. However it does not offer a feature that we could the source code directly.  When the debugger is stopped at the point where the snapshot was taken, you can hover over the Value cell to display the values of the object in a tool tip:

https://docs.microsoft.com/en-us/visualstudio/profiling/memory-usage#managed-types-reports

如果我们使用Performance Profiler分析内存并生成报告,我们可以查看源代码右键单击函数名称的函数:

 

问候,

Fletcher