Windows 手机分析器,堆摘要显示不是一个完整的摘要? [英] Windows phone profiler, heap summary shows not a complete summary?

查看:43
本文介绍了Windows 手机分析器,堆摘要显示不是一个完整的摘要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

图表显示它使用了大约 30 MB 的内存.但是,堆摘要显示的信息少于 1 MB(如果查看最后保留的分配").这可能是什么原因,如何获得其余部分?

Graph shows that it is used about 30 MBs of memory. However, Heap summary shows info for less than 1 MB (if looking at "retained allocations at end). What can be a reason for that, how to get the rest?

推荐答案

探查器仅显示由托管代码完成的分配.不幸的是,分配也可以由本机代码完成(例如,当您加载图片时),并且分析器不会跟踪这些分配.这使得在 Windows Phone 上跟踪内存泄漏特别棘手.

The profiler only shows you allocations done by managed code. Unfortunately, allocations can be done by native code too (for instance, when you load a picture), and those aren't traced by the profiler. This makes tracking memory leaks especially tricky on Windows Phone.

这篇关于Windows 手机分析器,堆摘要显示不是一个完整的摘要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆