Version: 2020.1
LanguageEnglish
  • C#

ProfilerUnsafeUtility

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 <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

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 Properties

CategoryAiAI and NavMesh Profiler category.
CategoryAllocationMemory allocation Profiler category.
CategoryAnimationAnimation Profiler category.
CategoryAudioAudio system Profiler category.
CategoryGUIUI Profiler category.
CategoryInputInput system Profiler category.
CategoryLightningGlobal Illumination Profiler category.
CategoryLoadingLoading system Profiler category.
CategoryNetworkNetworking system Profiler category.
CategoryOtherUncategorized Profiler category.
CategoryParticlesParticle system Profiler category.
CategoryPhysicsPhysics system Profiler category.
CategoryRenderRendering system Profiler category.
CategoryScriptsGeneric C# code Profiler category.
CategoryVideoVideo system Profiler category.
CategoryVrVR systen Profiler category.

Static Methods

BeginSampleStarts profiling a piece of code marked with a custom name that the markerPtr handle has defined.
BeginSampleWithMetadataStarts profiling a piece of code marked with a custom name that the markerPtr handle and metadata parameters has defined.
CreateMarkerConstructs a new Profiler marker handle for code instrumentation.
EndSampleEnd profiling a piece of code marked with a custom name defined by this instance of ProfilerMarker.
SetMarkerMetadataSet Profiler marker metadata name and type.
SingleSampleWithMetadataCreates profiling sample with a custom name that the markerPtr handle and metadata parameters has defined.

Did you find this page useful? Please give it a rating: