Version: 2022.3

ProfilerUnsafeUtility

class in Unity.Profiling.LowLevel.Unsafe

切换到手册

描述

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.

静态变量

CategoryAiAI and NavMesh Profiler category.
CategoryAllocationMemory allocation Profiler category.
CategoryAnimationAnimation Profiler category.
CategoryAudioAudio system Profiler category.
CategoryFileIOFile IO Profiler category.
CategoryGUIUI Profiler category.
CategoryInputInput system Profiler category.
CategoryInternalInternal Unity systems Profiler category.
CategoryLightingGlobal Illumination Profiler category.
CategoryLoadingLoading system Profiler category.
CategoryNetworkNetworking system Profiler category.
CategoryOtherUncategorized Profiler category.
CategoryParticlesParticle system Profiler category.
CategoryPhysicsPhysics system Profiler category.
CategoryPhysics2DPhysics 2D system Profiler category.
CategoryRenderRendering system Profiler category.
CategoryScriptsGeneric C# code Profiler category.
CategoryVideoVideo system Profiler category.
CategoryVirtualTexturingVirtual Texturing system Profiler category.
CategoryVrVR systen Profiler category.
TimestampGets Profiler timestamp.
TimestampToNanosecondsConversionRatioGets conversion ratio from Profiler timestamp to nanoseconds.

静态函数

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.
CreateFlowCreate a new Profiler flow identifier.
CreateMarkerConstructs a new Profiler marker handle for code instrumentation.
EndSample结束分析标有此 ProfilerMarker 实例所定义的自定义名称的一段代码。
FlowEventAdd flow event to a Profiler sample.
GetCategoryByNameGets the Profiler category identifier.
GetCategoryDescriptionRetrieves Profiler category information such as name or color.
SetMarkerMetadataSet Profiler marker metadata name and type.
SingleSampleWithMetadataCreates profiling sample with a custom name that the markerPtr handle and metadata parameters has defined.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961