PwrTest 計時器案例會在系統計時器解析變更發生時記錄它們。
語法
pwrtest /timer /? [/t:n] [/?]
/t:n
Specifies the total time (in minutes) for the scenario to run (the default value for n is 30 minutes).
Examples
pwrtest /timer
pwrtest /timer /t:5
XML 記錄檔輸出
<PwrTestLog>
<SystemInformation>
</SystemInformation>
<TimerEvents>
<TimerResolutionRundown>
<Timestamp></Timestamp>
<CurrentResolution></CurrentResolution>
<MinimumResolution></MinimumResolution>
<MaximumResolution></MaximumResolution>
<KernelCount></KernelCount>
<KernelResolution></KernelResolution>
</TimerResolutionRundown>
<TimerResolutionRequestRundown>
<Timestamp></Timestamp>
<AppName></AppName>
<Resolution></Resolution>
<ProcessID></ProcessID>
</TimerResolutionRequestRundown>
<NtSetTimerResolution>
<Timestamp></Timestamp>
<AppName></AppName>
<ServiceName></ServiceName>
<Resolution></Resolution>
<ProcessID></ProcessID>
</NtSetTimerResolution>
<UpdateTimerResolution>
<Timestamp></Timestamp>
<Resolution></Resolution>
</UpdateTimerResolution>
<ExSetTimerResolution>
<Timestamp></Timestamp>
<Resolution></Resolution>
</ExSetTimerResolution>
</TimerEvents>
</PwrTestLog>
下表描述記錄檔中顯示的 XML 元素。
| Element | Description |
|---|---|
| <計時器事件> | 包含所有不同的計時器事件。 只有一個 <TimerEvents> 元素可以出現在 PwrTest 記錄檔中。 |
| <時間戳記> | 任何指定事件的時間戳記。 |
| <計時器解決流程> | 事件,以顯示目前的計時器解析度統計資料。 只會記錄其中一個事件。 |
| <目前解決方案> | 當前分辨率(以毫秒為單位)。 |
| <最小解析度> | Minimum resolution. |
| <最大解析度> | Maximum resolution. |
| <核心計數> | 來自核心模式的解析要求數目。 |
| <核心解析> | 目前的核心計時器解析度。 |
| <計時器解決請求執行> | 事件,以顯示目前的解決請求。 可能會記錄多個事件。 |
| <應用程式名稱> | 要求者的處理程序名稱。 |
| <主意> | 以毫秒為單位的請求解析。 |
| <程序識別碼> | 請求者的進程識別碼。 |
| <NtSetTimer解析> | 事件表示進程發出計時器解析要求。 |
| <服務名稱> | 要求者的服務名稱 (如果適用)。 |
| <UpdateTimer解析度> | 事件表示系統更新了計時器解析度。 |
| <ExSetTimer解析> | 事件表示核心元件發出計時器解析要求。 |