简体   繁体   English

Windows Phone 8:监视混合C#/ C ++中的内存使用情况

[英]Windows Phone 8: Monitoring memory usage in mixed C#/C++

I want to monitor memory usage of a mixed C#/C++ app on Windows Phone 8 which uses Windows Phone Runtime Components. 我想监视使用Windows Phone运行时组件的Windows Phone 8上的混合C#/ C ++应用程序的内存使用情况。 The problem is that when openening the analysis toolkit in Visual Studio (ALT+F1) I have only the option "Execution" (http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202934%28v=vs.105%29.aspx). 问题是,当在Visual Studio(ALT + F1)中打开分析工具包时,我只有“执行”选项(http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202934%28v= vs.105%29.aspx)。 For "pure" C# project the memory options are available as well. 对于“纯”C#项目,也可以使用内存选项。

Are there other more or less easy means to monitor memory usage? 是否有其他或多或少的简单方法来监控内存使用情况?

Regards, 问候,

Have you considered building your own C# memory monitoring UI? 您是否考虑过构建自己的C#内存监控UI? It won't be as fancy or detailed as Visual Studio's memory analyzer, but it was the norm for about a year before WP7.5 introduced memory profiling capability. 它不会像Visual Studio的内存分析器那样花哨或详细,但在WP7.5引入内存分析功能之前大约一年就是常态。

I've written about this topic before on Nokia's Wiki under Techniques for memory analysis of Windows Phone apps . 我之前在诺基亚的Wiki 上用Windows Phone应用程序的内存分析技术撰写了这个主题。 Specifically the parts you care about are Add on-screen coding4fun MemoryCounter and Create your own memory profiler . 具体来说,你关心的部分是添加屏幕编码4fun MemoryCounter创建你自己的内存探查器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM