Class DiagnosticsHelpers
Inheritance
System.Object
DiagnosticsHelpers
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
Assembly: AltV.Net.Host.dll
Syntax
public static class DiagnosticsHelpers
Methods
| Improve this Doc View SourceAttachProfiler(Int32, UInt32, Guid, String, Byte[])
Attach a profiler to the target process runtime.
Declaration
public static int AttachProfiler(int processId, uint attachTimeout, Guid profilerGuid, string profilerPath, byte[] additionalData)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | processId | .NET Core process id |
System.UInt32 | attachTimeout | The timeout (in ms) for the runtime to wait while attempting to attach. |
System.Guid | profilerGuid | CLSID of the profiler to load |
System.String | profilerPath | Path to the profiler library on disk |
System.Byte[] | additionalData | additional data to pass to the profiler on attach |
Returns
Type | Description |
---|---|
System.Int32 | HRESULT |
GenerateCoreDump(Int32, String, DiagnosticsHelpers.DumpType, Boolean)
Initiate a core dump in the target process runtime.
Declaration
public static int GenerateCoreDump(int processId, string dumpName, DiagnosticsHelpers.DumpType dumpType, bool diagnostics)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | processId | .NET Core process id |
System.String | dumpName | Path and file name of core dump |
DiagnosticsHelpers.DumpType | dumpType | Type of dump |
System.Boolean | diagnostics | If true, log to console the dump generation diagnostics |
Returns
Type | Description |
---|---|
System.Int32 | DiagnosticsServerErrorCode |