Personal tools
You are here: Home okalog WindowsでCPU負荷の履歴データを取る
« January 2009 »
Su Mo Tu We Th Fr Sa
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
About this blog
日々のできごと
Recent comments
Re:Emobile契約 tetsu 2008-03-12
Re:Emobile契約 le14juillet67 2008-03-12
Categories
日記 (47)
Java (2)
コの業界 (1)
仕事術 (1)
Linux (2)
PHP (1)
物欲 (1)
Javascript (1)
Windows (5)
開発 (0)
trac (4)
C/C++ (2)
.NET (1)
料理 (1)
  早起き生活
Powered by 早起き生活
 
Document Actions

WindowsでCPU負荷の履歴データを取る

by Tetsuya Okada posted at 2008-04-19 19:29 last modified 2008-04-19 19:29

仕事関係でレポートを書くために必要になった。Unixだと確かコマンドがあったはずだけど...

タスクマネージャを使えばグラフで見れるけど、は感覚的にしかわからないので、データとして取得する方法がないか調べてみた。

以下のようにすれば取れるらしい。

typeperf "\Processor(_Total)\% Processor Time"

-o <ファイル名> で指定ファイルへ記録することができる。

終了するには Ctrl+C

なんかデータ項目(カウンタ)の名称がややこしい感じで、なんでこんなことになってるのかな?

-q オプションを指定すると指定できるカウンタの一覧が表示されるけど、えらくたくさん表示される。しかも長い。

なんかの規格で決まってるのかな?

Category(s)
Windows
The URL to Trackback this entry is:
http://www.okalabo.office-on-the.net/Blog/windowscpu8ca08377306e5c656b7430fc30bf309253d6308b/tbping
Add comment

You can add a comment by filling out the form below. Plain text formatting.

(Required)
(Required)
(Required)
(Required)
Enter the word


Powered by Plone CMS, the Open Source Content Management System