关键词:typeperf
typeperf 命令
使用示例:
案例1:#使用typeperf收集windows cpu、内存、硬盘性能
#使用typeperf收集windows cpu、内存、硬盘性能 实验环境:windows 7/2003/2008 ##1、新建配置文件:win.perf.txt 拷贝如下内容到文件,保存,退出: \Processor(_Total)\% Processor Time \Memory\Available MBytes \Memory\% Committed Bytes In Use \Memory\Page Faults/sec \PhysicalDisk(_Total)\% Disk Time \PhysicalDisk(_Total)\Avg. Disk Queue Length \PhysicalDisk(_Total)\Avg. Disk Bytes/Transfer ##2、命令执行 打开cmd,执行如下命令,每2秒打印一次性能信息: typeperf -cf d:\win.perf.txt -si 2 1 输出类型如下内容:其中第一列为时间列,其他每列对应文件 win.perf.txt 中的每一行信息: "08/14/2018 23:44:47.062","2.939277","11278.000000","70.250212","3020.376738","7.280620","0.145612","8274.285714" "08/14/2018 23:44:49.062","2.555335","11278.000000","70.250272","3277.267665","9.752500","0.195050","7429.019608" "08/14/2018 23:44:51.062","2.571615","11278.000000","70.250129","3006.032447","7.872500","0.157450","8997.770492"
参考:
https://blog.csdn.net/oscar999/article/details/7918385
https://blog.csdn.net/chengzhezhijian/article/details/51142783
http://blog.sina.com.cn/s/blog_62079f620101b48k.html
https://blog.csdn.net/yenange/article/details/50905412
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490960(v=technet.10)
案例2: