For those who want to know what their processor has been doing...

LeBlatt

Golden Member
Dec 8, 1999
1,220
0
76
Task manager tells you how much cpu a task is taking at a given time, and how much it has taken since boot, but it lacks one info : how long its been running.

Grab pslist.exe, part of the pstools pack from http://www.sysinternals.com to get this :

C:\>pslist \\mmaystre

PsList v1.12 - Process Information Lister
Copyright (C) 1999-2000 Mark Russinovich
Systems Internals - http://www.sysinternals.com

Process information for mmaystre:

Name_________Pid_Pri_Thd__Hnd____Mem_____User_Time___Kernel_Time___Elapsed_Time
Idle___________0___0___1____0_____16___0:00:00.000___0:00:55.239___22:15:34.059
System_________8___8__38__180_____52___0:00:00.000___0:00:21.651___22:15:34.059
SMSS_________140__11___6___33____100___0:00:00.010___0:00:00.520___22:15:34.059
csrss________164__13__10__355___1396___0:00:01.962___0:00:31.795___22:15:28.191
WINLOGON_____184__13__16__386___1352___0:00:00.590___0:00:02.453___22:15:26.038
services_____212___9__37__563___1892___0:00:18.977___0:00:24.905___22:15:23.133
LSASS________224___9__15__307___1500___0:00:00.460___0:00:00.731___22:15:23.083
svchost______396___8___6__260___1208___0:00:00.080___0:00:00.300___22:15:16.053
SPOOLSV______432___8__13__142___1304___0:00:00.751___0:00:01.822___22:15:13.149
Avsynmgr_____472___8___4__112____200___0:00:00.240___0:00:00.200___22:15:04.497
dnetc________504___4___6__117___1448__21:49:30.949___0:00:12.688___22:15:04.186
svchost______520___8__17__245____672___0:00:00.220___0:00:00.490___22:15:03.014
regsvc_______652___8___4___82____916___0:00:00.010___0:00:00.070___22:14:52.279
rtmservice___664___8___5__126____108___0:00:00.170___0:00:00.030___22:14:51.858
mstask_______692___8___6__147____176___0:00:00.040___0:00:00.070___22:14:50.456
WinMgmt______764___8___3___91_____96___0:00:08.462___0:00:00.510___22:14:48.534
WinVNC_______776___8___6__130____952___0:01:17.892___0:05:25.137___22:14:46.711
VSStat_______808___8___2___68____768___0:00:00.060___0:00:00.220___22:14:44.928
vshwin32_____816___8___7__112____404___0:00:00.440___0:00:00.630___22:14:44.037
Mcshield_____836__13__16__107___2192___0:00:06.990___0:00:01.602___22:14:39.921
Avconsol_____848___8___2___70____532___0:00:00.180___0:00:00.160___22:14:39.160
s3hotkey____1048___8___1___15____228___0:00:01.952___0:00:05.417___22:07:18.309
S3trayhp____1056___8___1___23____100___0:00:00.010___0:00:00.010___22:07:15.054
SynTPLpr____1176___8___3___30____200___0:00:00.010___0:00:00.030___22:07:08.314
SynTPEnh____1188___8___3___41____780___0:00:02.884___0:00:11.877___22:07:05.250
CP32NBTN____1200___8___2___49____172___0:00:00.030___0:00:00.060___22:07:04.279
AlogServ____1220___8___2___21____100___0:00:00.030___0:00:00.000___22:07:02.576
nwtray______1004___8___4___51____136___0:00:00.010___0:00:00.000___22:07:00.864
CDROMMNT____1276___8___1___28____120___0:00:00.010___0:00:00.030___22:06:37.079
KBOSDCTL____1284___8___1___34____132___0:00:00.170___0:00:01.321___22:06:36.258
CP32NKCC____1292___8___1___27____200___0:00:00.060___0:00:00.560___22:06:34.265
msiexec_____1256___8___3__119____488___0:00:02.042___0:00:02.022___21:46:42.582
OUTLOOK______992___8__16__361___7952___0:00:08.872___0:00:14.030____6:56:27.104
PDXWIN32____1320___8___5__201__11168___0:00:54.969___0:01:24.271____6:53:18.773
explorer____1076___8__15__329___3584___0:00:05.557___0:00:21.641____5:48:13.117
agentsvr____1356___8___6__116____192___0:00:05.938___0:10:41.983____5:31:55.632

I doubt it works on w9x. Also, the fact that you can run it from a remote machine allows to monitor a running task without interfering with it, like seeing how cpu intensive a screensaver is ;)

Edit : curse fusetalk for not displaying dupe blanks
Edit2 : and also for proportionnal fonts !
 

cirrus1

Senior member
Jul 26, 2000
662
0
0
Thanks for the info LB. I've long wanted a util that could see how much cpu a screensaver uses.
 

Train

Lifer
Jun 22, 2000
13,581
80
91
www.bing.com
hey Leblatt, i couldnt help but notice you have "agentsvr" running, that wouldnt happen to be the Agent Server from the "OnDisplay" corporation would it? I was sent to San Fran last summer to be trained to use OnDisplay agents, they are pretty nice :)
 

LeBlatt

Golden Member
Dec 8, 1999
1,220
0
76
OOps! didnt see that one, sorry Train.

nope, its Microsoft Agent Server. Not that I know what it is.... Its in \winnt\msagent\ on all my systems.
 

rc5

Platinum Member
Oct 13, 1999
2,464
1
0
That only shows how much time every task takes. I'd like to know what EXACTLY every task is doing.

Back in high school, I spent lot's of time in school library. Instead of studying, I was watching porn books.

There's a tricky difference. :)
 

LeBlatt

Golden Member
Dec 8, 1999
1,220
0
76
What do you mean, what tasks do ?
To know what function calls it performs, use a profiling tool. I dont know any specifics, but it monitors a task and helps programmers optimise it by telling what parts of code are most time consuming. Useful to increase fps in games or speed up programs that use lots of loops (like a DC client).

Or, if you want to know what files / regkeys it accesses, consider filemon / regmon, also from sysinternals ;).