Class ProfilerTick
A tick in used for the Profiler
Inherited Members
Namespace: MLAPI.Profiling
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
public class ProfilerTick
Fields
EventId
The id of the tick
Declaration
public int EventId
Field Value
Type | Description |
---|---|
int |
Events
The events that occured during this tick
Declaration
public readonly List<TickEvent> Events
Field Value
Type | Description |
---|---|
List<TickEvent> |
Frame
The frame the tick executed on
Declaration
public int Frame
Field Value
Type | Description |
---|---|
int |
Type
The type of tick
Declaration
public TickType Type
Field Value
Type | Description |
---|---|
TickType |
Properties
Bytes
The amount of bytes that were sent and / or received during this tick
Declaration
public uint Bytes { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
FromStream(Stream)
Creates a ProfilerTick from data in the provided stream
Declaration
public static ProfilerTick FromStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream containing the ProfilerTick data |
Returns
Type | Description |
---|---|
ProfilerTick | The ProfilerTick with data read from the stream |
SerializeToStream(Stream)
Writes the current ProfilerTick to the stream
Declaration
public void SerializeToStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream containing |