CompactContextSwitchEvent.SwitchInThreadWaitTime Property

Definition

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

public Nullable<TimeSpan> SwitchInThreadWaitTime { get; }
member this.SwitchInThreadWaitTime : Nullable<TimeSpan>
Public ReadOnly Property SwitchInThreadWaitTime As Nullable(Of TimeSpan)

Property Value

Remarks

The SwitchInThread used by this event is planned, but occasionally a last-moment change results in another thread actually switching in instead, in which case this property is not accurate.

This value is not present when the thread switching out is the idle thread.

This value is always zero when when the thread currently planned to be switched in is the idle thread.

This value cannot be larger than MaxSwitchInThreadWaitTime times ProcessorUsageTimerFrequency ticks due to the the compact context switch event format. If this value is MaxSwitchInThreadWaitTime times ProcessorUsageTimerFrequency ticks , it was likely a larger value capped to that constant.

Applies to