ContextSwitchEvent.CreateLegacy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateLegacy(TraceTimestamp, Int32, Int32, Int32, KernelWaitReason, Boolean, ThreadState, Int32, Int32, Int32, Int32)
public static Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent CreateLegacy (Microsoft.Windows.EventTracing.TraceTimestamp timestamp, int processor, int switchOutThreadId, int switchOutThreadPriority, Microsoft.Windows.EventTracing.Cpu.KernelWaitReason switchOutThreadWaitReason, bool switchOutThreadIsUserMode, Microsoft.Windows.EventTracing.Cpu.ThreadState switchOutThreadState, int switchOutThreadIdealProcessor, int switchInThreadId, int switchInThreadPriority, int previousCState);
static member CreateLegacy : Microsoft.Windows.EventTracing.TraceTimestamp * int * int * int * Microsoft.Windows.EventTracing.Cpu.KernelWaitReason * bool * Microsoft.Windows.EventTracing.Cpu.ThreadState * int * int * int * int -> Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent
Public Shared Function CreateLegacy (timestamp As TraceTimestamp, processor As Integer, switchOutThreadId As Integer, switchOutThreadPriority As Integer, switchOutThreadWaitReason As KernelWaitReason, switchOutThreadIsUserMode As Boolean, switchOutThreadState As ThreadState, switchOutThreadIdealProcessor As Integer, switchInThreadId As Integer, switchInThreadPriority As Integer, previousCState As Integer) As ContextSwitchEvent
Parameters
- timestamp
- TraceTimestamp
- processor
- Int32
- switchOutThreadId
- Int32
- switchOutThreadPriority
- Int32
- switchOutThreadWaitReason
- KernelWaitReason
- switchOutThreadIsUserMode
- Boolean
- switchOutThreadState
- ThreadState
- switchOutThreadIdealProcessor
- Int32
- switchInThreadId
- Int32
- switchInThreadPriority
- Int32
- previousCState
- Int32
Returns
Applies to
CreateLegacy(TraceTimestamp, Int32, Int32, Int32, Int32, KernelWaitReason, Boolean, ThreadState, Int32, Int32, Int32, Int32)
public static Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent CreateLegacy (Microsoft.Windows.EventTracing.TraceTimestamp timestamp, int processor, int switchOutThreadId, int switchOutThreadPriority, int switchOutThreadQuantum, Microsoft.Windows.EventTracing.Cpu.KernelWaitReason switchOutThreadWaitReason, bool switchOutThreadIsUserMode, Microsoft.Windows.EventTracing.Cpu.ThreadState switchOutThreadState, int switchOutThreadIdealProcessor, int switchInThreadId, int switchInThreadPriority, int switchInThreadQuantum);
static member CreateLegacy : Microsoft.Windows.EventTracing.TraceTimestamp * int * int * int * int * Microsoft.Windows.EventTracing.Cpu.KernelWaitReason * bool * Microsoft.Windows.EventTracing.Cpu.ThreadState * int * int * int * int -> Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent
Public Shared Function CreateLegacy (timestamp As TraceTimestamp, processor As Integer, switchOutThreadId As Integer, switchOutThreadPriority As Integer, switchOutThreadQuantum As Integer, switchOutThreadWaitReason As KernelWaitReason, switchOutThreadIsUserMode As Boolean, switchOutThreadState As ThreadState, switchOutThreadIdealProcessor As Integer, switchInThreadId As Integer, switchInThreadPriority As Integer, switchInThreadQuantum As Integer) As ContextSwitchEvent
Parameters
- timestamp
- TraceTimestamp
- processor
- Int32
- switchOutThreadId
- Int32
- switchOutThreadPriority
- Int32
- switchOutThreadQuantum
- Int32
- switchOutThreadWaitReason
- KernelWaitReason
- switchOutThreadIsUserMode
- Boolean
- switchOutThreadState
- ThreadState
- switchOutThreadIdealProcessor
- Int32
- switchInThreadId
- Int32
- switchInThreadPriority
- Int32
- switchInThreadQuantum
- Int32
Returns
Applies to
CreateLegacy(TraceTimestamp, Int32, Int32, Int32, KernelWaitReason, Boolean, ThreadState, Int32, Int64, Int32, Int32, Int32, TimeSpan, Int32)
public static Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent CreateLegacy (Microsoft.Windows.EventTracing.TraceTimestamp timestamp, int processor, int switchOutThreadId, int switchOutThreadPriority, Microsoft.Windows.EventTracing.Cpu.KernelWaitReason switchOutThreadWaitReason, bool switchOutThreadIsUserMode, Microsoft.Windows.EventTracing.Cpu.ThreadState switchOutThreadState, int switchOutThreadIdealProcessor, long switchOutThreadRemainingQuantum, int switchInThreadId, int switchInThreadPriority, int switchInThreadPriorityDecrement, TimeSpan switchInThreadWaitTime, int previousCState);
static member CreateLegacy : Microsoft.Windows.EventTracing.TraceTimestamp * int * int * int * Microsoft.Windows.EventTracing.Cpu.KernelWaitReason * bool * Microsoft.Windows.EventTracing.Cpu.ThreadState * int * int64 * int * int * int * TimeSpan * int -> Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent
Public Shared Function CreateLegacy (timestamp As TraceTimestamp, processor As Integer, switchOutThreadId As Integer, switchOutThreadPriority As Integer, switchOutThreadWaitReason As KernelWaitReason, switchOutThreadIsUserMode As Boolean, switchOutThreadState As ThreadState, switchOutThreadIdealProcessor As Integer, switchOutThreadRemainingQuantum As Long, switchInThreadId As Integer, switchInThreadPriority As Integer, switchInThreadPriorityDecrement As Integer, switchInThreadWaitTime As TimeSpan, previousCState As Integer) As ContextSwitchEvent
Parameters
- timestamp
- TraceTimestamp
- processor
- Int32
- switchOutThreadId
- Int32
- switchOutThreadPriority
- Int32
- switchOutThreadWaitReason
- KernelWaitReason
- switchOutThreadIsUserMode
- Boolean
- switchOutThreadState
- ThreadState
- switchOutThreadIdealProcessor
- Int32
- switchOutThreadRemainingQuantum
- Int64
- switchInThreadId
- Int32
- switchInThreadPriority
- Int32
- switchInThreadPriorityDecrement
- Int32
- switchInThreadWaitTime
- TimeSpan
- previousCState
- Int32
Returns
Applies to
CreateLegacy(TraceTimestamp, Int32, Int32, Int32, Int32, KernelWaitReason, Boolean, ThreadState, Int32, Int64, Int32, Int32, Int32, TimeSpan)
public static Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent CreateLegacy (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.ThreadState switchOutThreadState, int switchOutThreadIdealProcessor, long switchOutThreadRemainingQuantum, int switchInThreadId, int switchInThreadPriority, int switchInThreadPriorityDecrement, TimeSpan switchInThreadWaitTime);
static member CreateLegacy : Microsoft.Windows.EventTracing.TraceTimestamp * int * int * int * int * Microsoft.Windows.EventTracing.Cpu.KernelWaitReason * bool * Microsoft.Windows.EventTracing.Cpu.ThreadState * int * int64 * int * int * int * TimeSpan -> Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent
Public Shared Function CreateLegacy (timestamp As TraceTimestamp, processor As Integer, switchOutThreadId As Integer, switchOutThreadPriority As Integer, switchOutThreadRank As Integer, switchOutThreadWaitReason As KernelWaitReason, switchOutThreadIsUserMode As Boolean, switchOutThreadState As ThreadState, switchOutThreadIdealProcessor As Integer, switchOutThreadRemainingQuantum As Long, switchInThreadId As Integer, switchInThreadPriority As Integer, switchInThreadPriorityDecrement As Integer, switchInThreadWaitTime As TimeSpan) As ContextSwitchEvent
Parameters
- timestamp
- TraceTimestamp
- processor
- Int32
- switchOutThreadId
- Int32
- switchOutThreadPriority
- Int32
- switchOutThreadRank
- Int32
- switchOutThreadWaitReason
- KernelWaitReason
- switchOutThreadIsUserMode
- Boolean
- switchOutThreadState
- ThreadState
- switchOutThreadIdealProcessor
- Int32
- switchOutThreadRemainingQuantum
- Int64
- switchInThreadId
- Int32
- switchInThreadPriority
- Int32
- switchInThreadPriorityDecrement
- Int32
- switchInThreadWaitTime
- TimeSpan
Returns
Applies to
CreateLegacy(TraceTimestamp, Int32, Int32, Int32, Int32, KernelWaitReason, Boolean, Boolean, ThreadState, Int32, Int64, Int32, Int32, Int32, TimeSpan, Boolean)
public static Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent CreateLegacy (Microsoft.Windows.EventTracing.TraceTimestamp timestamp, int processor, int switchOutThreadId, int switchOutThreadPriority, int switchOutThreadRank, Microsoft.Windows.EventTracing.Cpu.KernelWaitReason switchOutThreadWaitReason, bool switchOutThreadIsUserMode, bool switchOutThreadIsHighQualityOfService, Microsoft.Windows.EventTracing.Cpu.ThreadState switchOutThreadState, int switchOutThreadIdealProcessor, long switchOutThreadRemainingQuantum, int switchInThreadId, int switchInThreadPriority, int switchInThreadPriorityDecrement, TimeSpan switchInThreadWaitTime, bool switchInThreadIsHighQualityOfService);
static member CreateLegacy : Microsoft.Windows.EventTracing.TraceTimestamp * int * int * int * int * Microsoft.Windows.EventTracing.Cpu.KernelWaitReason * bool * bool * Microsoft.Windows.EventTracing.Cpu.ThreadState * int * int64 * int * int * int * TimeSpan * bool -> Microsoft.Windows.EventTracing.Cpu.ContextSwitchEvent
Public Shared Function CreateLegacy (timestamp As TraceTimestamp, processor As Integer, switchOutThreadId As Integer, switchOutThreadPriority As Integer, switchOutThreadRank As Integer, switchOutThreadWaitReason As KernelWaitReason, switchOutThreadIsUserMode As Boolean, switchOutThreadIsHighQualityOfService As Boolean, switchOutThreadState As ThreadState, switchOutThreadIdealProcessor As Integer, switchOutThreadRemainingQuantum As Long, switchInThreadId As Integer, switchInThreadPriority As Integer, switchInThreadPriorityDecrement As Integer, switchInThreadWaitTime As TimeSpan, switchInThreadIsHighQualityOfService As Boolean) As ContextSwitchEvent
Parameters
- timestamp
- TraceTimestamp
- processor
- Int32
- switchOutThreadId
- Int32
- switchOutThreadPriority
- Int32
- switchOutThreadRank
- Int32
- switchOutThreadWaitReason
- KernelWaitReason
- switchOutThreadIsUserMode
- Boolean
- switchOutThreadIsHighQualityOfService
- Boolean
- switchOutThreadState
- ThreadState
- switchOutThreadIdealProcessor
- Int32
- switchOutThreadRemainingQuantum
- Int64
- switchInThreadId
- Int32
- switchInThreadPriority
- Int32
- switchInThreadPriorityDecrement
- Int32
- switchInThreadWaitTime
- TimeSpan
- switchInThreadIsHighQualityOfService
- Boolean