我们有 C#.Net windows 应用程序,我需要知道如何获取我的应用程序的内存消耗详细信息。我已经尝试System.Diagnostics.Process
获取当前进程内存信息。我需要知道内存中有多少对象以及每个对象的内存消耗详细信息。
问问题
2978 次
1 回答
1
Please read about Garbage collector and take a look at this article MSDN Article The article shows the members of GC that can show you how to do a few things, how to get the total amount of allocated memory , how many times the GC has collected.
Other than that you'll have to probably use a profiler as given here.
You can also write your own profiler.This could be of help
于 2013-07-19T10:28:21.173 回答