기술 자료

Unity Engine

Unity Engine

ProfilerModuleMetadataAttribute(string)

Initializes and returns an instance of ProfilerModuleMetadataAttribute.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public ProfilerModuleMetadataAttribute(string displayName)

Parameters

displayName

The display name of the attributed module.

Remarks

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.