Class NetworkProfiler
NetworkProfiler for profiling network traffic
Inherited Members
Namespace: MLAPI.Profiling
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
public static class NetworkProfiler
Properties
IsRunning
Whether or not the profiler is recording data
Declaration
public static bool IsRunning { get; }
Property Value
Type | Description |
---|---|
bool |
Ticks
The ticks that has been recorded
Declaration
public static FixedQueue<ProfilerTick> Ticks { get; }
Property Value
Type | Description |
---|---|
FixedQueue<ProfilerTick> |
Methods
Start(int)
Starts recording data for the Profiler
Declaration
public static void Start(int historyLength)
Parameters
Type | Name | Description |
---|---|---|
int | historyLength | The amount of ticks to keep in memory |
Stop()
Stops recording data
Declaration
public static void Stop()
Stop(ref ProfilerTick[])
Stops recording data and fills the buffer with the recorded ticks and returns the length;
Declaration
public static int Stop(ref ProfilerTick[] tickBuffer)
Parameters
Type | Name | Description |
---|---|---|
ProfilerTick[] | tickBuffer | The buffer to fill with the ticks |
Returns
Type | Description |
---|---|
int | The number of ticks recorded |
Stop(ref List<ProfilerTick>)
Stops recording data and fills the buffer with the recorded ticks and returns the length;
Declaration
public static int Stop(ref List<ProfilerTick> tickBuffer)
Parameters
Type | Name | Description |
---|---|---|
List<ProfilerTick> | tickBuffer | The buffer to fill with the ticks |
Returns
Type | Description |
---|---|
int | The number of ticks recorded |