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

ProfilerCounterDescriptor

структура в Unity.Profiling.Editor

Описание

Предоставляет дескриптор для счетчика Profiler.

Используется для описания Profiler Счетчика или Profiler Значения Счетчика, часто в ProfilerModule или 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) {} }

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

Свойства

Свойство Описание
CategoryNameИмя категории описанного счетчика Profiler.
NameИмя описанного счетчика Profiler.

Конструкторы

Конструктор Описание
ProfilerCounterDescriptorИнициализирует и возвращает экземпляр ProfilerCounterDescriptor.