Class EventPipeClient
Inheritance
System.Object
EventPipeClient
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AltV.Net.Host.Diagnostics.Eventing
Assembly: AltV.Net.Host.dll
Syntax
public static class EventPipeClient
Methods
| Improve this Doc View SourceCollectTracing(Int32, SessionConfiguration, out UInt64)
Start trace collection.
Declaration
public static Stream CollectTracing(int processId, SessionConfiguration configuration, out ulong sessionId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | processId | Runtime process to trace |
SessionConfiguration | configuration | buffer size and provider configuration |
System.UInt64 | sessionId | session id |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream |
CollectTracing2(Int32, SessionConfigurationV2, out UInt64)
Declaration
public static Stream CollectTracing2(int processId, SessionConfigurationV2 configuration, out ulong sessionId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | processId | |
SessionConfigurationV2 | configuration | |
System.UInt64 | sessionId |
Returns
Type | Description |
---|---|
System.IO.Stream |
ListAvailablePorts()
Get the files associated with the opened IPC Ports for DotNet Core applications.
Declaration
public static IEnumerable<int> ListAvailablePorts()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Int32> | A collection of process identifiers associated with the list of opened files (IPC ports). These process Ids might have expired and not properly cleaned up. |
StopTracing(Int32, UInt64)
Turn off EventPipe logging session for the specified process Id.
Declaration
public static ulong StopTracing(int processId, ulong sessionId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | processId | Process Id to turn off logging session. |
System.UInt64 | sessionId | EventPipe session Id to turn off. |
Returns
Type | Description |
---|---|
System.UInt64 | It returns sessionId if success, otherwise 0. |