編集

次の方法で共有


CpuTraceSourceExtensions.UseCpuSamplingData(ITraceSource) Method

Definition

Provides data from a trace about CPU usage based on periodic sampling of the instruction pointer.

public static Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Cpu.ICpuSampleDataSource> UseCpuSamplingData (this Microsoft.Windows.EventTracing.ITraceSource trace);
static member UseCpuSamplingData : Microsoft.Windows.EventTracing.ITraceSource -> Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Cpu.ICpuSampleDataSource>
<Extension()>
Public Function UseCpuSamplingData (trace As ITraceSource) As IPendingResult(Of ICpuSampleDataSource)

Parameters

trace
ITraceSource

The trace from which to access the data.

Returns

A pending result that, after the trace is processed, provides data from the trace about CPU usage based on periodic sampling of the instruction pointer.

Remarks

Since this data is sampled, it is only as precise as the sampling interval. A sampling interval of 1 millisecond is common.

Windows Performance Analyzer provides this data via the CPU Usage (Sampled) table.

Applies to