Provides a descriptor for a Profiler counter.
Used to describe a Profiler Counter or Profiler Counter Value, often within a ProfilerModule or ProfilerModuleViewController.
using System; using Unity.Profiling; using Unity.Profiling.Editor;
[Serializable] [ProfilerModuleMetadata("Garbage Collection")] public class GarbageCollectionProfilerModule : ProfilerModule { static readonly ProfilerCounterDescriptor[] k_ChartCounters = new ProfilerCounterDescriptor[] { new ProfilerCounterDescriptor("GC Reserved Memory", ProfilerCategory.Memory), new ProfilerCounterDescriptor("GC Used Memory", ProfilerCategory.Memory), new ProfilerCounterDescriptor("GC Allocated In Frame", ProfilerCategory.Memory), };
public GarbageCollectionProfilerModule() : base(k_ChartCounters) {} }
Additional resources: ProfilerModule, ProfilerModuleViewController.
CategoryName | The category name of the described Profiler counter. |
Name | The name of the described Profiler counter. |
ProfilerCounterDescriptor | Initializes and returns an instance of ProfilerCounterDescriptor. |