The Computer Performance Shell Game

Oh yeah, Perfmon is great…

… when it’s not BLOWING YOUR MIND WITH COMPLEXITY

http://www.codinghorror.com/blog/archives/000359.html

Think first, then measure.

Does anyone know something that does a similar set of things but (besides Process Explorer) that works on XP?

To all the *NIX heads saying you should see what we’ve got on unix…the stuff Jeff is showing is only what’s baked in for all users. As Z pointed out serious perf investigation will involve windows performance counters (baked into the OS) ETW (also baked in) and tools like xperf. For example xperf will let you look at CPU utilization on a per-thread basis and load and look at the CPU utilization down to the method level in windows.

Hi Jeff,

As at least one other person has pointed out; perfmon has been around for quite some time, and if you are running on Windows OS prior to Vista / 2008 you should check it out. It’s not quite as visually appealing as what you describe, but it is useful for the overview, and gives access to a reporting engine for graphing results.

Well, one guy already mentioned perfmon /s. You can then add a new graph for each resource on your computer you want to watch.

One more thing that a process could be waiting on is any arbitrary shared resource that is controlled by a synchronization primitive.

For a database that could be a row- or table-lock. For an application it could literally be anything.

That’s where things start to get complicated.

Cool!!! this stuff is better than the unix one!

If I’m not mistaken, I think perfmon.msc is available in XP as well. You just have to enter it from a DOS window or the run command.

Hello,

Please add your site at http://www.sweebs.com. Sweebs.com is a place where other people can find you among the best sites on the internet!
Its just started and we are collecting the best found on the net! We will be delighted to have you in the sweebs listings.

Regards
Kris

This is wow and new in Windows? Bwahaha! :smiley:

Ok to be serious, a momentary picture is good but a good capacity management over time is more valuable.

** At any given moment, your computer is waiting for some operation to complete on one of these resources. **

You missed one: the user. Oftentimes, there’s nothing to do at all.

Remember to turn on the extra columns in Task Manager for such nice things as GDI objects, handles, and threads. Very useful.

Three-card monte! (It’s the second trick.)
a href=http://www.youtube.com/watch?v=7jKuHiY397Uhttp://www.youtube.com/watch?v=7jKuHiY397U/a

Explanation of above bug: I failed to enter my name. When the post was presented to me for resubmission it had already been htmlified internally. The unaccepted comment should have been dehtmlified before repopulating the comment box (or not htmlified until accepted), but it was not. The undehtmlified text was rehtmlified into the hash you see. The correct link is http://www.youtube.com/watch?v=7jKuHiY397U

@Jeff - I must admit I’ve skipped Vista after toying with it for a while, but have been appreciating the same sort of graphing and detailed output Windows7 offers. There’s some really nice desktop widgets you can get too which will report this stuff all the time. Unfortunately, they seem to introduce a brief lag each time they report when I’m trying to play some of my more demanding games and so have to be turned off during that period. Generally though, they’re extremely handy :slight_smile:

@BTTF - Some sort of Task Tuner would be pretty cool to adjust priorities in the system to whatever your current high priority task is. Something like that would be really great when windows is booting up and all you want to do is check your email; set it on the top of the stack and check your mail while the rest of your system comes up.