I have an application that creates multiple AppDomains performing
various tasks. I would like to monitor the CPU usage per AppDomain.
Is this possible using the System.Diagnostics performance counter
API?
Thanks!
I have an application that creates multiple AppDomains performing
various tasks. I would like to monitor the CPU usage per AppDomain.
Is this possible using the System.Diagnostics performance counter
API?
Thanks!
stevenmcohn@xxxxxx wrote:Unfortunately, no. CPU usage is tracked per process, not per AppDomain. You
> I have an application that creates multiple AppDomains performing
> various tasks. I would like to monitor the CPU usage per AppDomain.
> Is this possible using the System.Diagnostics performance counter
> API?
>
can of course create your own performance counters and use these to keep
track of relative load (you could measure requests/sec, for example) but you
can't monitor CPU usage this way (at least not in any way that's accurate).
You could conceivably hook up a profiler and measure time spent in different
AppDomains, but I'm not aware of a profiler that offers this functionality
by itself, and writing your own profiler is not a trivial task.
--
J.
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Performance Monitor Counters | DetRich | Server General | 0 | 22 Oct 2009 |
| Cant access performance counters remotely from perfmon | Kai | Server General | 1 | 16 Jul 2009 |
| Performance monitor not able to add any counters | mvelhal@gmail.com | Vista performance & maintenance | 0 | 09 Apr 2007 |
| Powershell WMI Performance counters - refresher object needed? | Frank | PowerShell | 6 | 03 Apr 2007 |
| How do I remotely capture performance counters? | =?Utf-8?B?R2lsIE5vdmFr?= | PowerShell | 1 | 08 Sep 2006 |