Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Per-AppDomain CPU Performance Counters

Reply
 
Old 08-30-2008   #1 (permalink)
stevenmcohn


 
 

Per-AppDomain CPU Performance Counters

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!

My System SpecsSystem Spec
Old 08-30-2008   #2 (permalink)
Jeroen Mostert


 
 

Re: Per-AppDomain CPU Performance Counters

stevenmcohn@xxxxxx wrote:
Quote:

> 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?
>
Unfortunately, no. CPU usage is tracked per process, not per AppDomain. You
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.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to read hardware performance counters in Windows Vista Vista hardware & devices
in vista, where are the counters for network interface? Vista General
Performance monitor not able to add any counters Vista performance & maintenance
Powershell WMI Performance counters - refresher object needed? PowerShell
How do I remotely capture performance counters? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46