Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
图表显示它使用了大约 30 MB 的内存。但是,堆摘要显示的信息少于 1 MB(如果查看“最后保留的分配”)。这可能是什么原因,如何获得其余部分?
探查器仅向您显示由托管代码完成的分配。不幸的是,分配也可以由本机代码完成(例如,当您加载图片时),并且分析器不会跟踪这些分配。这使得在 Windows Phone 上跟踪内存泄漏特别棘手。