docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkProfiler

    NetworkProfiler for profiling network traffic

    Inheritance
    object
    NetworkProfiler
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MLAPI.Profiling
    Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
    Syntax
    public static class NetworkProfiler

    Properties

    IsRunning

    Whether or not the profiler is recording data

    Declaration
    public static bool IsRunning { get; }
    Property Value
    Type Description
    bool

    Ticks

    The ticks that has been recorded

    Declaration
    public static FixedQueue<ProfilerTick> Ticks { get; }
    Property Value
    Type Description
    FixedQueue<ProfilerTick>

    Methods

    Start(int)

    Starts recording data for the Profiler

    Declaration
    public static void Start(int historyLength)
    Parameters
    Type Name Description
    int historyLength

    The amount of ticks to keep in memory

    Stop()

    Stops recording data

    Declaration
    public static void Stop()

    Stop(ref ProfilerTick[])

    Stops recording data and fills the buffer with the recorded ticks and returns the length;

    Declaration
    public static int Stop(ref ProfilerTick[] tickBuffer)
    Parameters
    Type Name Description
    ProfilerTick[] tickBuffer

    The buffer to fill with the ticks

    Returns
    Type Description
    int

    The number of ticks recorded

    Stop(ref List<ProfilerTick>)

    Stops recording data and fills the buffer with the recorded ticks and returns the length;

    Declaration
    public static int Stop(ref List<ProfilerTick> tickBuffer)
    Parameters
    Type Name Description
    List<ProfilerTick> tickBuffer

    The buffer to fill with the ticks

    Returns
    Type Description
    int

    The number of ticks recorded

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)