Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ProfilerCategory

Use to specify category for instrumentation Profiler markers.
Read time 1 minuteLast updated 4 days ago

Definition

public readonly struct ProfilerCategory

Remarks

using Unity.Profiling;public class MySystemClass{ static readonly ProfilerMarker s_SimulatePerfMarker = new ProfilerMarker(ProfilerCategory.Ai, "MySystem.Simulate"); public void UpdateLogic() { using (s_SimulatePerfMarker.Auto()) { // ... } }}
Additional Resources: ProfilerMarker.

Constructors

Constructor

Description

ProfilerCategory(System.String)Use to construct ProfilerCategory by category name.
ProfilerCategory(System.String,Unity.Profiling.ProfilerCategoryColor)Use to construct ProfilerCategory by category name.

Properties

Property

Description

ColorGets Profiler category color.
NameGets Profiler category name.

Static Properties

Property

Description

AiAI and NavMesh Profiler category.
AnimationAnimation Profiler category.
AudioAudio system Profiler category.
FileIOFile IO Profiler category.
GuiUI Profiler category.
InputInput system Profiler category.
InternalInternal Unity systems Profiler category.
LightingGlobal Illumination Profiler category.
LoadingLoading system Profiler category.
MemoryMemory allocation Profiler category.
NetworkNetworking system Profiler category.
ParticlesParticle system Profiler category.
PhysicsPhysics system Profiler category.
Physics2DThe Physics 2D system category for the Profiler.
PhysicsCore2DThe Physics Core 2D system category for the Profiler.
RenderRendering system Profiler category.
ScriptsGeneric C# code Profiler category.
U2D2D Profiler category.
UIToolkitUI Toolkit Profiler category.
VideoVideo system Profiler category.
VirtualTexturingVirtual Texturing system Profiler category.
VrVR systen Profiler category.