ContextSwitchEvent Struct

Definition

Represents a context switch.

public struct ContextSwitchEvent
type ContextSwitchEvent = struct
Public Structure ContextSwitchEvent
Inheritance
ContextSwitchEvent

Properties

PreviousCState

Gets the last C-State the processor went into when it was in the idle loop.

Processor

Gets the index of the processor on which the context switch is occurring.

SwitchInThreadId

Gets the ID of the thread currently planned to be switched in.

SwitchInThreadPriority

Gets the priority of the thread currently planned to be switched in.

SwitchInThreadPriorityDecrement
SwitchInThreadQualityOfService

Gets the quality of service level for the thread currently planned to be switched in.

SwitchInThreadQuantum

Gets the quantum for the thread currently planned to be switched in.

SwitchInThreadWaitTime

Gets the wait time for the thread currently planned to be switched in.

SwitchOutThreadId

Gets the ID of the thread switching out.

SwitchOutThreadIdealProcessor

Gets the index of the preferred processor for the thread switching out.

SwitchOutThreadIsUserMode

Gets a value indicating whether the thread switching out is a user mode thread.

SwitchOutThreadPriority

Gets the priority of the thread switching out.

SwitchOutThreadQualityOfService

Gets the quality of service level for the thread switching out.

SwitchOutThreadQuantum

Gets the quantum for the thread switching out.

SwitchOutThreadRank

Gets the rank for the thread switching out.

SwitchOutThreadRemainingQuantum

Gets the remaining quantum for the thread switching out.

SwitchOutThreadState

Gets the state of the thread switching out.

SwitchOutThreadWaitReason

Gets the reason the thread switching out is in the Waiting state.

Timestamp

Gets the timestamp at which the syscall enter event was logged in the trace.

Methods

Create(TraceTimestamp, Int32, Int32, Int32, Int32, KernelWaitReason, Boolean, QualityOfServiceLevel, ThreadState, Int32, Int64, Int32, Int32, Int32, TimeSpan, QualityOfServiceLevel)
CreateIdleSwitchOut(TraceTimestamp, Int32, Int32, KernelWaitReason, Boolean, QualityOfServiceLevel, ThreadState, Int32, Int64, Int32, Int32, Int32, TimeSpan, QualityOfServiceLevel, Int32)
CreateLegacy(TraceTimestamp, Int32, Int32, Int32, Int32, KernelWaitReason, Boolean, Boolean, ThreadState, Int32, Int64, Int32, Int32, Int32, TimeSpan, Boolean)
CreateLegacy(TraceTimestamp, Int32, Int32, Int32, Int32, KernelWaitReason, Boolean, ThreadState, Int32, Int32, Int32, Int32)
CreateLegacy(TraceTimestamp, Int32, Int32, Int32, Int32, KernelWaitReason, Boolean, ThreadState, Int32, Int64, Int32, Int32, Int32, TimeSpan)
CreateLegacy(TraceTimestamp, Int32, Int32, Int32, KernelWaitReason, Boolean, ThreadState, Int32, Int32, Int32, Int32)
CreateLegacy(TraceTimestamp, Int32, Int32, Int32, KernelWaitReason, Boolean, ThreadState, Int32, Int64, Int32, Int32, Int32, TimeSpan, Int32)
CreateLegacyIdleSwitchOut(TraceTimestamp, Int32, Int32, KernelWaitReason, Boolean, Boolean, ThreadState, Int32, Int64, Int32, Int32, Int32, TimeSpan, Boolean, Byte)
CreateLegacyIdleSwitchOut(TraceTimestamp, Int32, Int32, KernelWaitReason, Boolean, ThreadState, Int32, Int64, Int32, Int32, Int32, TimeSpan, Int32)

Applies to