LoginSignup
8
10

More than 5 years have passed since last update.

typeperf.exe を使って CPU使用率をcsvで保存

Last updated at Posted at 2017-09-20

typeperf.exeはxp以降標準で含まれている。

参考

取得できる値一覧

typeperf -q
もしくは
typeperf -qx

1秒ごとに10回取得の例

標準出力
typeperf -sc 10 -si 1 "\processor(_Total)\% Processor Time"

perf.png

ログ出力(上書きしか選べないのと、不要なメッセージも含まれる)
typeperf -sc 10 -si 1 -o log.csv -y "\processor(_Total)\% Processor Time"
ログ出力(追記)
typeperf -sc 10 -si 1 "\processor(_Total)\% Processor Time" | find ":" >> log.csv
8
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
10