Struct ProfilerScope
A Helper class for Profiler scoping
Inherited Members
Namespace: Unity.Multiplayer.Tools.Common
Assembly: Unity.Multiplayer.Tools.Common.dll
Syntax
public ref struct ProfilerScope
Methods
BeginSample(string)
Static method returning a new ProfilerScope object and starting the sampling
Declaration
public static ProfilerScope BeginSample(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the Profiler Sample |
Returns
| Type | Description |
|---|---|
| ProfilerScope | The ProfilerScope object |
Dispose()
Stopping the Profiler sampling on Disposal of the object (end of scope)
Declaration
public void Dispose()