Skip to main content

MLAPI.Profiling.NetworkProfiler

NetworkProfiler for profiling network traffic

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Inherited Members#

Object.Equals(Object)

Object.Equals(Object, Object)

Object.GetHashCode()

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public static class NetworkProfiler

Properties#

IsRunning#

Whether or not the profiler is recording data

Declaration#

public static bool IsRunning { get; }

Property Value#

TypeDescription
System.Boolean

Ticks#

The ticks that has been recorded

Declaration#

public static FixedQueue<ProfilerTick> Ticks { get; }

Property Value#

TypeDescription
FixedQueue<ProfilerTick>

Methods#

Start(Int32)#

Starts recording data for the Profiler

Declaration#

public static void Start(int historyLength)

Parameters#

TypeNameDescription
System.Int32historyLengthThe 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#

TypeNameDescription
ProfilerTick[]tickBufferThe buffer to fill with the ticks

Returns#

TypeDescription
System.Int32The 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#

TypeNameDescription
System.Collections.Generic.List<ProfilerTick>tickBufferThe buffer to fill with the ticks

Returns#

TypeDescription
System.Int32The number of ticks recorded