-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathAltTrace.cs
30 lines (27 loc) · 894 Bytes
/
AltTrace.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
namespace AltV.Net
{
public static class AltTrace
{
public static event Action<long> OnTraceFileSizeChange
{
add
{
lock (HostWrapper.OnTraceFileSizeChangeEventHandlers)
{
HostWrapper.OnTraceFileSizeChangeEventHandlers.Add(value);
}
}
remove
{
lock (HostWrapper.OnTraceFileSizeChangeEventHandlers)
{
HostWrapper.OnTraceFileSizeChangeEventHandlers.Remove(value);
}
}
}
public static void Start(string traceFileName, TraceFileFormat traceFileFormat = TraceFileFormat.NetTrace) =>
HostWrapper.StartTracing(traceFileName, traceFileFormat.ToString());
public static void Stop() => HostWrapper.StopTracing();
}
}