Class ClrThreadInfo
Represents the information about the managed thread in the external process CLR instance
Inheritance
Inherited Members
Namespace: CilTools.Runtime
Assembly: CilTools.Runtime.dll
Syntax
public class ClrThreadInfo
Properties
DisplayString
Gets the information about the current thread
Declaration
public string DisplayString { get; }
Property Value
Type | Description |
---|---|
System.String |
StackTrace
Gets the stack trace of the current thread
Declaration
public IEnumerable<ClrStackFrameInfo> StackTrace { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ClrStackFrameInfo> |
Remarks
The stack trace is the sequence of the nested method calls made in the thread before it reached the current point of execution.
Methods
Get(ClrRuntime, IEnumerable<Assembly>, ClrAssemblyReader)
Gets the information about managed threads in the specified CLR instance
Declaration
public static ClrThreadInfo[] Get(ClrRuntime runtime, IEnumerable<Assembly> assemblies, ClrAssemblyReader reader)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Diagnostics.Runtime.ClrRuntime | runtime | The CLR isntance to fetch thread information from |
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> | assemblies | The optional collection of assemblies preloaded from the target CLR instance, or null if you don't have any |
ClrAssemblyReader | reader | The optional ClrAssemblyReader object to be used for reading assemblies from the target CLR isntance, or null if you don't have one |
Returns
Type | Description |
---|---|
ClrThreadInfo[] | The array of ClrThreadInfo objects containing information about managed threads |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The value of |
Print(TextWriter)
Prints the information about the current thread to the specified TextWriter
Declaration
public void Print(TextWriter output)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | output |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The value of |
ToString()
Gets the information about the current thread
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |