Compartilhar via


ThreadChain Class

Provides a chain of thread-related events that was recorded from a running application.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.IntelliTrace.Chain
    Microsoft.VisualStudio.IntelliTrace.DerivedChain
      Microsoft.VisualStudio.IntelliTrace.PartitionedListChain
        Microsoft.VisualStudio.IntelliTrace.ThreadChain

Namespace:  Microsoft.VisualStudio.IntelliTrace
Assembly:  Microsoft.VisualStudio.IntelliTrace (in Microsoft.VisualStudio.IntelliTrace.dll)

Syntax

'Declaração
Public NotInheritable Class ThreadChain _
    Inherits PartitionedListChain
public sealed class ThreadChain : PartitionedListChain
public ref class ThreadChain sealed : public PartitionedListChain
[<Sealed>]
type ThreadChain =  
    class
        inherit PartitionedListChain
    end
public final class ThreadChain extends PartitionedListChain

The ThreadChain type exposes the following members.

Properties

  Name Description
Public property AfterLastToken Gets an EventToken for the position that is immediately after the current LastToken. (Inherited from PartitionedListChain.)
Public property BeforeFirstToken Gets an EventToken for the position that is immediately before FirstToken. This token will never become valid. (Inherited from PartitionedListChain.)
Public property CanGetCount Gets a value that determines whether the chain supports Count. (Inherited from PartitionedListChain.)
Public property CanGetLastToken Gets a value that determines whether the chain supports LastToken. (Inherited from PartitionedListChain.)
Public property CanGetPreviousToken Gets a value that determines whether the chain supports GetPreviousToken. (Inherited from Chain.)
Public property Count Gets the number of events in the chain. This property can be called only when CanGetCount returns true. (Inherited from PartitionedListChain.)
Public property FirstToken Gets an EventToken for the first event in the chain. (Inherited from PartitionedListChain.)
Public property FirstValidToken Gets an EventToken for the first valid event in the chain. (Inherited from PartitionedListChain.)
Public property IntelliTraceThreadId Gets the IntelliTrace thread id that identifies the thread in this IntelliTrace file.
Public property IsEmpty Gets a value that indicates whether the chain is empty. (Inherited from PartitionedListChain.)
Public property LastToken Gets an EventToken for the last event in the chain. (Inherited from PartitionedListChain.)
Protected property PartitionedChain Gets the StreamChain that is the source of the events for this chain. (Inherited from PartitionedListChain.)
Protected property PartitioningChain Gets the DerivedChain that contains each of the partitioning events that are used to divide the larger chain into partitions. (Inherited from PartitionedListChain.)
Public property PartitionLoadLimitEnabled Gets a value that indicates whether there is a limit to the number of partitions that the PartitionedListChain will load at the same time (before unloading the least recently used partitions). (Inherited from PartitionedListChain.)

Top

Methods

  Name Description
Public method Dispose() (Inherited from Chain.)
Protected method Dispose(Boolean) Releases the resources that are used by this chain. (Inherited from PartitionedListChain.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEvent Gets an IntelliTraceEvent for the specified EventToken. (Inherited from PartitionedListChain.)
Public method GetEvents Gets multiple IntelliTraceEvents from a start EventToken up to but excluding an end EventToken. (Inherited from PartitionedListChain.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetNextToken Gets the EventToken for the next event after the given EventToken. (Inherited from PartitionedListChain.)
Public method GetPreviousToken Gets the token for the previous event before the given token. (Inherited from PartitionedListChain.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsValidEventType Determines whether the given IntelliTraceEvent is valid for this chain. (Inherited from PartitionedListChain.)
Public method IsValidToken Determines whether the given EventToken is valid for this chain. (Inherited from PartitionedListChain.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Refresh Refreshes the data in the chain from the partitioning and partitioned event chains. (Inherited from PartitionedListChain.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

ThreadChain is a PartitionedListChain that loads events in partitions for better memory management.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.IntelliTrace Namespace

ThreadStreamChain