Unity 6.3
0 онлайн 3 гостей 3 в системе
Вход

ProfilerModuleMetadataAttribute.DisplayName

Declaration

public string DisplayName;

Описание

Отображаемое имя модуля Profiler.

Отображаемое имя модуля Profiler в виде строки, только для чтения.

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

Дополнительные ресурсы: ,ProfilerModule,.