Class Utils | Performance testing API | 2.2.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class Utils

    Inheritance
    Object
    Utils
    Namespace: Unity.PerformanceTesting.Runtime
    Syntax
    public static class Utils

    Fields

    PlayerPrefKeyRunJSON

    Declaration
    public const string PlayerPrefKeyRunJSON = "PT_Run"
    Field Value
    Type Description
    String

    TestRunInfo

    Declaration
    public const string TestRunInfo = "PerformanceTestRunInfo.json"
    Field Value
    Type Description
    String

    TestRunPath

    Declaration
    public const string TestRunPath = "Assets/Resources/PerformanceTestRunInfo.json"
    Field Value
    Type Description
    String

    Properties

    ResourcesPath

    Declaration
    public static string ResourcesPath { get; }
    Property Value
    Type Description
    String

    Methods

    Average(List<Double>)

    Declaration
    public static double Average(List<double> samples)
    Parameters
    Type Name Description
    List<Double> samples
    Returns
    Type Description
    Double

    ConvertFromUnixTimestamp(Int64)

    Declaration
    public static DateTime ConvertFromUnixTimestamp(long timestamp)
    Parameters
    Type Name Description
    Int64 timestamp
    Returns
    Type Description
    DateTime

    ConvertSample(SampleUnit, SampleUnit, Double)

    Declaration
    public static double ConvertSample(SampleUnit from, SampleUnit to, double value)
    Parameters
    Type Name Description
    SampleUnit from
    SampleUnit to
    Double value
    Returns
    Type Description
    Double

    ConvertToUnixTimestamp(DateTime)

    Declaration
    public static long ConvertToUnixTimestamp(DateTime date)
    Parameters
    Type Name Description
    DateTime date
    Returns
    Type Description
    Int64

    GetArg(String)

    Declaration
    public static string GetArg(string name)
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    String

    GetMedianValue(List<Double>)

    Declaration
    public static double GetMedianValue(List<double> samples)
    Parameters
    Type Name Description
    List<Double> samples
    Returns
    Type Description
    Double

    GetPercentile(List<Double>, Double)

    Declaration
    public static double GetPercentile(List<double> samples, double percentile)
    Parameters
    Type Name Description
    List<Double> samples
    Double percentile
    Returns
    Type Description
    Double

    GetRatio(SampleUnit, SampleUnit)

    Declaration
    public static double GetRatio(SampleUnit from, SampleUnit to)
    Parameters
    Type Name Description
    SampleUnit from
    SampleUnit to
    Returns
    Type Description
    Double

    GetStandardDeviation(List<Double>, Double)

    Declaration
    public static double GetStandardDeviation(List<double> samples, double average)
    Parameters
    Type Name Description
    List<Double> samples
    Double average
    Returns
    Type Description
    Double

    GetZeroValueCount(List<Double>)

    Declaration
    public static int GetZeroValueCount(List<double> samples)
    Parameters
    Type Name Description
    List<Double> samples
    Returns
    Type Description
    Int32

    Max(List<Double>)

    Declaration
    public static double Max(List<double> samples)
    Parameters
    Type Name Description
    List<Double> samples
    Returns
    Type Description
    Double

    Min(List<Double>)

    Declaration
    public static double Min(List<double> samples)
    Parameters
    Type Name Description
    List<Double> samples
    Returns
    Type Description
    Double

    RelativeSampleUnit(SampleUnit)

    Declaration
    public static double RelativeSampleUnit(SampleUnit unit)
    Parameters
    Type Name Description
    SampleUnit unit
    Returns
    Type Description
    Double

    RemoveIllegalCharacters(String)

    Declaration
    public static string RemoveIllegalCharacters(string path)
    Parameters
    Type Name Description
    String path
    Returns
    Type Description
    String

    Sum(List<Double>)

    Declaration
    public static double Sum(List<double> samples)
    Parameters
    Type Name Description
    List<Double> samples
    Returns
    Type Description
    Double

    UpdateStatistics(SampleGroup)

    Declaration
    public static void UpdateStatistics(this SampleGroup sampleGroup)
    Parameters
    Type Name Description
    SampleGroup sampleGroup
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023