Struct ProfilerMarker<TP1>
Use ProfilerMarker<TP1> to mark up script code blocks for the Unity Profiler.
You can pass a single integral or floating point parameter alongside the Begin event.
Namespace: Unity.Profiling
Assembly: solution.dll
Syntax
public struct ProfilerMarker<TP1> where TP1 : unmanaged
Type Parameters
Name | Description |
---|---|
TP1 | int, uint, long, ulong, float or double type. |
Constructors
Name | Description |
---|---|
ProfilerMarker(string, string) | Constructs the ProfilerMarker that belongs to the generic ProfilerCategory.Scripts category. |
ProfilerMarker(ProfilerCategory, string, string) | Constructs the ProfilerMarker. |
Methods
Name | Description |
---|---|
Auto(TP1) | Profiles a piece of code enclosed within the using statement. |
Begin(TP1) | Begins profiling a piece of code marked with the ProfilerMarker instance. |
End() | Ends profiling a piece of code marked with the ProfilerMarker instance. |