views:

97

answers:

2

Can I get a better breakdown of memory use from within my app than GC.GetTotalMemory? For example per-assembly or per-module? Does that even make sense?

A: 

If you're happy to let your users use a 3rd party app, ProcMon from SysInternals is pretty powerful.

Matt Warren
thanks, but I need to do this from within my app.
Simon
A: 

You can use the performance counters from the System.Diagnostics namespace. See:

http://msdn.microsoft.com/en-us/library/5f9bkxzf.aspx

Arthur Raffles
Could you go into a little more detail?
Simon