Class ProfilerMarkerExtension
Provides an extension to the ProfilerMarker API to accommodate a single additional parameter to the Begin method.
Namespace: Unity.Profiling
Syntax
public static class ProfilerMarkerExtension : object
Methods
Begin(ProfilerMarker, Double)
Begin profiling a piece of code marked with the ProfilerMarker instance.
Declaration
public static void Begin(this ProfilerMarker marker, double metadata)
Parameters
Type | Name | Description |
---|---|---|
ProfilerMarker | marker | ProfilerMarker instance. |
Double | metadata | ''double'' parameter. |
Remarks
Does nothing in Release Players.
Begin(ProfilerMarker, Int32)
Begin profiling a piece of code marked with the ProfilerMarker instance.
Declaration
public static void Begin(this ProfilerMarker marker, int metadata)
Parameters
Type | Name | Description |
---|---|---|
ProfilerMarker | marker | ProfilerMarker instance. |
Int32 | metadata | ''int'' parameter. |
Remarks
Does nothing in Release Players.
Begin(ProfilerMarker, Int64)
Begin profiling a piece of code marked with the ProfilerMarker instance.
Declaration
public static void Begin(this ProfilerMarker marker, long metadata)
Parameters
Type | Name | Description |
---|---|---|
ProfilerMarker | marker | ProfilerMarker instance. |
Int64 | metadata | ''long'' parameter. |
Remarks
Does nothing in Release Players.
Begin(ProfilerMarker, Single)
Begin profiling a piece of code marked with the ProfilerMarker instance.
Declaration
public static void Begin(this ProfilerMarker marker, float metadata)
Parameters
Type | Name | Description |
---|---|---|
ProfilerMarker | marker | ProfilerMarker instance. |
Single | metadata | ''float'' parameter. |
Remarks
Does nothing in Release Players.
Begin(ProfilerMarker, String)
Begin profiling a piece of code marked with the ProfilerMarker instance.
Declaration
public static void Begin(this ProfilerMarker marker, string metadata)
Parameters
Type | Name | Description |
---|---|---|
ProfilerMarker | marker | ProfilerMarker instance. |
String | metadata | ''string'' parameter. |
Remarks
Does nothing in Release Players.
Begin(ProfilerMarker, UInt32)
Begin profiling a piece of code marked with the ProfilerMarker instance.
Declaration
public static void Begin(this ProfilerMarker marker, uint metadata)
Parameters
Type | Name | Description |
---|---|---|
ProfilerMarker | marker | ProfilerMarker instance. |
UInt32 | metadata | ''uint'' parameter. |
Remarks
Does nothing in Release Players.
Begin(ProfilerMarker, UInt64)
Begin profiling a piece of code marked with the ProfilerMarker instance.
Declaration
public static void Begin(this ProfilerMarker marker, ulong metadata)
Parameters
Type | Name | Description |
---|---|---|
ProfilerMarker | marker | ProfilerMarker instance. |
UInt64 | metadata | ''ulong'' parameter. |
Remarks
Does nothing in Release Players.