Unity - Scripting API: ProfilerUnsafeUtility (original) (raw)
class in Unity.Profiling.LowLevel.Unsafe
/
Implemented in:UnityEngine.CoreModule
Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
Your name Your email Suggestion*
Cancel
Description
Utility class which provides access to low level Profiler API.
Use ProfilerUnsafeUtility methods to build a high-level profiling primitive.
The low level Profiler API is included in a Release Build.
Static Methods
Method | Description |
---|---|
BeginSample | Starts profiling a piece of code marked with a custom name that the markerPtr handle has defined. |
BeginSampleWithMetadata | Starts profiling a piece of code marked with a custom name that the markerPtr handle and metadata parameters has defined. |
CreateFlow | Create a new Profiler flow identifier. |
CreateMarker | Constructs a new Profiler marker handle for code instrumentation. |
EndSample | End profiling a piece of code marked with a custom name defined by this instance of ProfilerMarker. |
FlowEvent | Add flow event to a Profiler sample. |
GetCategoryByName | Gets the Profiler category identifier. |
GetCategoryDescription | Retrieves Profiler category information such as name or color. |
SetMarkerMetadata | Set Profiler marker metadata name and type. |
SingleSampleWithMetadata | Creates profiling sample with a custom name that the markerPtr handle and metadata parameters has defined. |