Version: 2021.2
言語: 日本語

ProfilerCounterDescriptor

struct in Unity.Profiling.Editor

マニュアルに切り替える

説明

Provides a descriptor for a Profiler counter.

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) {} }

変数

CategoryNameThe category name of the described Profiler counter.
NameThe name of the described Profiler counter.

コンストラクタ

ProfilerCounterDescriptorInitializes and returns an instance of ProfilerCounterDescriptor.