Version: 2022.2
언어: 한국어

ProfilerCounterDescriptorConstructor

매뉴얼로 전환
public ProfilerCounterDescriptor (string name, Unity.Profiling.ProfilerCategory category);

파라미터

name The name of the Profiler counter to describe. A string.
category The category of the Profiler counter to describe. A ProfilerCategory.

설명

Initializes and returns an instance of ProfilerCounterDescriptor.

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

See Also: ProfilerModule.


public ProfilerCounterDescriptor (string name, string categoryName);

파라미터

name The name of the Profiler counter to describe, as a string.
categoryName The category name of the Profiler counter to describe, as a string.

설명

Initializes and returns an instance of ProfilerCounterDescriptor.

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.Name), new ProfilerCounterDescriptor("GC Used Memory", ProfilerCategory.Memory.Name), new ProfilerCounterDescriptor("GC Allocated In Frame", ProfilerCategory.Memory.Name), };

public GarbageCollectionProfilerModule() : base(k_ChartCounters) {} }

See Also: ProfilerModule.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961