ContextSwitchEvent.Create Method

Definition

public static Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent Create (Microsoft.Windows.EventTracing.TraceTimestamp timestamp, int processor, int switchOutThreadId, int switchOutThreadPriority, int switchOutThreadRank, Microsoft.Windows.EventTracing.Cpu.KernelWaitReason switchOutThreadWaitReason, bool switchOutThreadIsUserMode, Microsoft.Windows.EventTracing.Cpu.QualityOfServiceLevel switchOutThreadQualityOfService, Microsoft.Windows.EventTracing.Cpu.ThreadState switchOutThreadState, int switchOutThreadIdealProcessor, long switchOutThreadRemainingQuantum, int switchInThreadId, int switchInThreadPriority, int switchInThreadPriorityDecrement, TimeSpan switchInThreadWaitTime, Microsoft.Windows.EventTracing.Cpu.QualityOfServiceLevel switchInThreadQualityOfService);
static member Create : Microsoft.Windows.EventTracing.TraceTimestamp * int * int * int * int * Microsoft.Windows.EventTracing.Cpu.KernelWaitReason * bool * Microsoft.Windows.EventTracing.Cpu.QualityOfServiceLevel * Microsoft.Windows.EventTracing.Cpu.ThreadState * int * int64 * int * int * int * TimeSpan * Microsoft.Windows.EventTracing.Cpu.QualityOfServiceLevel -> Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent
Public Shared Function Create (timestamp As TraceTimestamp, processor As Integer, switchOutThreadId As Integer, switchOutThreadPriority As Integer, switchOutThreadRank As Integer, switchOutThreadWaitReason As KernelWaitReason, switchOutThreadIsUserMode As Boolean, switchOutThreadQualityOfService As QualityOfServiceLevel, switchOutThreadState As ThreadState, switchOutThreadIdealProcessor As Integer, switchOutThreadRemainingQuantum As Long, switchInThreadId As Integer, switchInThreadPriority As Integer, switchInThreadPriorityDecrement As Integer, switchInThreadWaitTime As TimeSpan, switchInThreadQualityOfService As QualityOfServiceLevel) As ContextSwitchEvent

Parameters

timestamp
TraceTimestamp
processor
Int32
switchOutThreadId
Int32
switchOutThreadPriority
Int32
switchOutThreadRank
Int32
switchOutThreadWaitReason
KernelWaitReason
switchOutThreadIsUserMode
Boolean
switchOutThreadQualityOfService
QualityOfServiceLevel
switchOutThreadState
ThreadState
switchOutThreadIdealProcessor
Int32
switchOutThreadRemainingQuantum
Int64
switchInThreadId
Int32
switchInThreadPriority
Int32
switchInThreadPriorityDecrement
Int32
switchInThreadWaitTime
TimeSpan
switchInThreadQualityOfService
QualityOfServiceLevel

Returns

Applies to