Class DiagnosticsClient
This is a top-level class that contains methods to send various diagnostics command to the runtime.
Inheritance
Inherited Members
Namespace: AltV.Net.Host.Diagnostics.Client.DiagnosticsClient
Assembly: AltV.Net.Host.dll
Syntax
public sealed class DiagnosticsClient
Constructors
| Improve this Doc View SourceDiagnosticsClient(Int32)
Declaration
public DiagnosticsClient(int processId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | processId |
Methods
| Improve this Doc View SourceAttachProfiler(TimeSpan, Guid, String, Byte[])
Attach a profiler.
Declaration
public void AttachProfiler(TimeSpan attachTimeout, Guid profilerGuid, string profilerPath, byte[] additionalData = null)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | attachTimeout | Timeout for attaching the profiler |
System.Guid | profilerGuid | Guid for the profiler to be attached |
System.String | profilerPath | Path to the profiler to be attached |
System.Byte[] | additionalData | Additional data to be passed to the profiler |
GetPublishedProcesses()
Get all the active processes that can be attached to.
Declaration
public static IEnumerable<int> GetPublishedProcesses()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Int32> | IEnumerable of all the active process IDs. |
StartEventPipeSession(IEnumerable<EventPipeProvider>, Boolean, Int32)
Start tracing the application and return an EventPipeSession object
Declaration
public EventPipeSession StartEventPipeSession(IEnumerable<EventPipeProvider> providers, bool requestRundown = true, int circularBufferMB = 256)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<EventPipeProvider> | providers | An IEnumerable containing the list of Providers to turn on. |
System.Boolean | requestRundown | If true, request rundown events from the runtime |
System.Int32 | circularBufferMB | The size of the runtime's buffer for collecting events in MB |
Returns
Type | Description |
---|---|
EventPipeSession | An EventPipeSession object representing the EventPipe session that just started. |
WriteDump(DumpType, String, Boolean)
Trigger a core dump generation.
Declaration
public void WriteDump(DumpType dumpType, string dumpPath, bool logDumpGeneration = false)
Parameters
Type | Name | Description |
---|---|---|
DumpType | dumpType | Type of the dump to be generated |
System.String | dumpPath | Full path to the dump to be generated. By default it is /tmp/coredump.{pid} |
System.Boolean | logDumpGeneration | When set to true, display the dump generation debug log to the console. |