Tracelog (Tracelog.exe) は、コマンド プロンプト ウィンドウで実行されるイベント トレース コントローラーです。 このセクションでは、Tracelog について説明し、そのコマンド構文について説明し、その使用例を示します。
Tracelog (Tracelog.exe) は、WDK、Visual Studio、デスクトップ アプリ用 Windows SDK をインストールするときに含まれます。 キットのダウンロードについては、「 Windows ハードウェアのダウンロード」を参照してください。
インストール後 TraceLog.exe は、そのバージョンのキットの bin ディレクトリに配置されます。 必要なプロセッサを選択します。 たとえば、x64 バージョンの場合: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64>
Tracelog でできること
Tracelog は、コマンド プロンプト ウィンドウでイベント トレース コントローラーとして使用できます。
Note To control a trace session you must be a member of the Performance Log Users group or the Administrators group on the computer (Run as administrator).
Tracelog の機能は次のとおりです。
Starts and stops trace sessions, including private trace sessions, NT Kernel Logger trace sessions, and Global Logger trace sessions
トレース セッションのプロパティを構成および変更します
Enables and disables trace providers
トレース セッション バッファーをフラッシュする
実行中の (リアルタイム) トレース セッションの一覧
登録済みトレース プロバイダーを一覧表示します
遅延プロシージャ 呼び出し (DPC) と割り込みサービス ルーチン (ISR) に費やされた時間を測定します
Tracelog は、トレース セッション中にプロバイダーによって生成されたトレース メッセージを含むイベント トレース ログ (.etl) ファイルを生成します。 メッセージはバイナリ形式でファイルに格納されます。 To display the trace messages in a readable format, use TraceView or Tracefmt.
Tracelog は、カーネル モードとプライベート (ユーザー モード) トレース セッション、および NT カーネル ロガー トレース セッション や グローバル ロガー トレース セッションなどの特別なセッションを制御します。
Tracelog は Windows 7 以降のバージョンの Windows で実行されます。
Many of the features of Tracelog are also available in TraceView, a tool included in the Windows Driver Kit (WDK) that has a graphical user interface in addition to a command-line interface.