Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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). For "pure" C# project the memory options are available as well.

Are there other more or less easy means to monitor memory usage?

Regards,

like image 963
Hyndrix Avatar asked Dec 13 '12 16:12

Hyndrix


1 Answers

Have you considered building your own C# memory monitoring 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.

I've written about this topic before on Nokia's Wiki under Techniques for memory analysis of Windows Phone apps. Specifically the parts you care about are Add on-screen coding4fun MemoryCounter and Create your own memory profiler.

like image 51
JustinAngel Avatar answered Oct 01 '22 00:10

JustinAngel