您的位置:首页 > 其它

收集windows系统性能统计数据

2014-08-29 16:36 260 查看
在cmd窗口输入
typeperf "\Processor(_Total)\% Privileged Time" "\Processor(_Total)\% User
Time"
也可以将下面的三个命令写到c:\cpu-util.txt里。
\Processor(_Total)\% User Time
\Processor(_Total)\% Privileged Time
\Processor(_Total)\% Processor Time
然后在命令行里执行
typeperf -cf cpu-util.txt
"(PDH-CSV 4.0)","\\3-PC\Processor(_Total)\% User Time","\\3-
"08/29/2014 16:49:15.101","1.947951","1.558362","3.771113"
"08/29/2014 16:49:16.102","0.389598","2.337539","2.991947"
"08/29/2014 16:49:17.103","0.779176","2.727137","3.771113"
"08/29/2014 16:49:18.104","1.558362","2.727137","4.550309"
"08/29/2014 16:49:19.105","0.389588","3.895901","2.991937"
"08/29/2014 16:49:20.116","1.542948","1.928693","4.722945"
"08/29/2014 16:49:21.118","0.778409","2.724405","2.310347"
"08/29/2014 16:49:22.120","1.946006","4.281222","6.591569"
"08/29/2014 16:49:23.123","0.000000","1.553706","2.116522"
"08/29/2014 16:49:24.125","0.389588","3.116725","3.771123"
"08/29/2014 16:49:25.126","0.389209","0.778409","0.000000"
"08/29/2014 16:49:26.128","0.779176","2.727127","3.771123"
"08/29/2014 16:49:27.129","1.558362","1.558362","3.381525"
第一行是数据的报头。 typeperf报告间隔为1秒。该报告间隔可以使用-si选项被改变。 -si选项接受形式[MM:] SS其中MM:是可选分钟,ss是秒数。如:
typeperf -cf c:\cpu-util.txt -si ss:5
更多信息:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/nt_command_typeperf.mspx?mfr=true
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: