Class CollectTrace
Inheritance
System.Object
CollectTrace
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
Assembly: AltV.Net.Host.dll
Syntax
public class CollectTrace
Fields
| Improve this Doc View SourceCpuSampling
Declaration
public static readonly CollectTrace.Profile CpuSampling
Field Value
Type | Description |
---|---|
CollectTrace.Profile |
GcCollect
Declaration
public static readonly CollectTrace.Profile GcCollect
Field Value
Type | Description |
---|---|
CollectTrace.Profile |
GcVerbose
Declaration
public static readonly CollectTrace.Profile GcVerbose
Field Value
Type | Description |
---|---|
CollectTrace.Profile |
Methods
| Improve this Doc View SourceCollect(ICollection<Action<Int64>>, CollectTrace.Tracing, FileInfo, Int32, UInt32, String, CollectTrace.Profile, TraceFileFormat)
Collects a diagnostic trace from a currently running process.
Declaration
public static async Task<int> Collect(ICollection<Action<long>> sizeChangeCallbacks, CollectTrace.Tracing tracing, FileInfo output, int processId = 0, uint buffersize = 256U, string providers = "", CollectTrace.Profile profile = null, TraceFileFormat format = TraceFileFormat.NetTrace)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<System.Action<System.Int64>> | sizeChangeCallbacks | size change callbacks |
CollectTrace.Tracing | tracing | To start / stop the tracing |
System.IO.FileInfo | output | The output path for the collected trace data. |
System.Int32 | processId | The process to collect the trace from. |
System.UInt32 | buffersize | Sets the size of the in-memory circular buffer in megabytes. |
System.String | providers | A list of EventPipe providers to be enabled. This is in the form 'Provider[,Provider]', where Provider is in the form: 'KnownProviderName[:Flags[:Level][:KeyValueArgs]]', and KeyValueArgs is in the form: '[key1=value1][;key2=value2]' |
CollectTrace.Profile | profile | A named pre-defined set of provider configurations that allows common tracing scenarios to be specified succinctly. |
TraceFileFormat | format | The desired format of the created trace file. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> |
ToProviders(String)
Declaration
public static List<Provider> ToProviders(string providers)
Parameters
Type | Name | Description |
---|---|---|
System.String | providers |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Provider> |