Share via


ThreadChain Class

Definition

Provides a chain of thread-related events recorded from a running application. ThreadChain is a PartitionedListChain which loads events in partitions for better memory management.

public ref class ThreadChain sealed : Microsoft::VisualStudio::IntelliTrace::PartitionedListChain
public ref class ThreadChain sealed : Microsoft::VisualStudio::IntelliTrace::PartitionedListChain
class ThreadChain sealed : Microsoft::VisualStudio::IntelliTrace::PartitionedListChain
public sealed class ThreadChain : Microsoft.VisualStudio.IntelliTrace.PartitionedListChain
type ThreadChain = class
    inherit PartitionedListChain
Public NotInheritable Class ThreadChain
Inherits PartitionedListChain
Inheritance

Properties

AfterLastToken

Gets an EventToken for the position immediately after the current LastToken. If additional events get added to the chain, the token returned from AfterLastToken will become valid. This property is available even if CanGetLastToken returns false.

(Inherited from PartitionedListChain)
BeforeFirstToken

Gets an EventToken for the position immediately before FirstToken. This token will never become valid.

(Inherited from PartitionedListChain)
CanGetCount

Gets a value that determines if the chain supports Count.

(Inherited from PartitionedListChain)
CanGetLastToken

Gets a value that determines if the chain supports LastToken.

(Inherited from PartitionedListChain)
CanGetPreviousToken

Gets a value that determines if the chain supports GetPreviousToken(EventToken).

(Inherited from Chain)
Count

Gets the number of events in the chain. This property can only be called if CanGetCount returns true.

(Inherited from PartitionedListChain)
FirstToken

Gets an EventToken for the first event in the chain.

(Inherited from PartitionedListChain)
FirstValidToken

Gets an EventToken for the first valid event in the chain.

(Inherited from PartitionedListChain)
IntelliTraceThreadId

Gets the IntelliTrace thread id that identifies the thread in this IntelliTrace file.

IsEmpty

Gets a value that indicates if the chain is empty.

(Inherited from PartitionedListChain)
LastToken

Gets an EventToken for the last event in the chain. This property can only be called if CanGetLastToken returns true.

(Inherited from PartitionedListChain)
PartitionedChain

Gets the StreamChain that is the source of the events for this chain.

(Inherited from PartitionedListChain)
PartitioningChain

Gets the DerivedChain that contains each of the partitioning events that are used to divide the larger chain into partitions.

(Inherited from PartitionedListChain)
PartitionLoadLimitEnabled

Gets or sets a value that indicates whether there is a limit to the number of partitions the PartitionedListChain will load simultaneously (before unloading the least recently used partitions).

(Inherited from PartitionedListChain)

Methods

Dispose()

Releases resources used by this chain.

(Inherited from Chain)
Dispose(Boolean)

Releases the resources used by this chain.

(Inherited from PartitionedListChain)
GetEnumerator() (Inherited from Chain)
GetEnumerator<TEvent>() (Inherited from Chain)
GetEvent(EventToken)

Gets an IntelliTraceEvent for the specified EventToken.

(Inherited from PartitionedListChain)
GetEvents(EventToken, EventToken)

Gets multiple IntelliTraceEvents from a start EventToken up to but not including an end EventToken.

(Inherited from PartitionedListChain)
GetNextToken(EventToken)

Gets the EventToken for the next event after the given EventToken.

(Inherited from PartitionedListChain)
GetPreviousToken(EventToken)

Gets the token for the previous event before the given token.

(Inherited from PartitionedListChain)
IsValidEventType(IntelliTraceEvent)

Determines if the given IntelliTraceEvent is valid for this chain.

(Inherited from PartitionedListChain)
IsValidToken(EventToken)

Determines if the given EventToken is valid for this chain.

(Inherited from PartitionedListChain)
OnPartitionUpdate(PartitioningEvent, IList<IntelliTraceEvent>) (Inherited from PartitionedListChain)
Refresh()

Refreshes the data in the chain from the partitioning and partitioned event chains.

(Inherited from PartitionedListChain)
Tokens() (Inherited from Chain)

Explicit Interface Implementations

IEnumerable.GetEnumerator() (Inherited from Chain)

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to