[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/Unity.Profiling.Editor.ProfilerCounterDescriptor.html [Back]  [Original]

Unity - Scripting API: ProfilerCounterDescriptor
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    ProfilerCounterDescriptor

    struct in Unity.Profiling.Editor

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Description

    Provides a descriptor for a Profiler counter.

    using System;
    using Unity.Profiling;
    using Unity.Profiling.Editor;

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

    Properties

    Property Description
    CategoryNameThe category name of the described Profiler counter.
    DescriptionThe description of the described Profiler counter.
    NameThe name of the described Profiler counter.

    Constructors

    Constructor Description
    ProfilerCounterDescriptorInitializes and returns an instance of ProfilerCounterDescriptor.

    Public Methods

    Method Description
    ToStringReturns a string representation of the ProfilerCounterDescriptor.

    Web Proxy Viewer  |  New URL  |  Original Page