是否有工具可以让我分析Windows Mobile应用程序的内存使用情况。
我的应用程序有一段代码正好与总内存的限制相对应。 我试图设置我的代码,以便在需要新引用之前对大对象的引用超出范围。
但我需要一种方法来确定它是否有效。
所以......任何人都知道这样做的方法(在Windows Mobile 5上)。
Is there a tool that allows me to profile the memory usage for my Windows Mobile Application.
My app has a section of code that is right up against the limit of the total memory. I have tried to setup my code so that the references to large objects go out of scope before new references are needed.
But I need a way to see if it is working.
So... any one know a way to do this (on Windows Mobile 5).
最满意答案
您是否看过NetCF CLR Profiler,它是CF 3.5 PowerToys的一部分 ? 它提供了所有对象分配的历史记录,它们的大小,所有者,解除分配等。
编辑
此处概述了分析器的用法。
Have you looked at the NetCF CLR Profiler, which is part of the CF 3.5 PowerToys? It provides history of all object allocations, their sizes, owners, deallocations, etc.
EDIT
Usage of the profiler is outlined here.
更多推荐
发布评论