Class ProfilerIndexStat

Full definition and all data captured for given profiler stat.

Hierarchy

  • FrameworkObject
    • ProfilerIndexStat

Constructors

  • Parameters

    • OptionalisInternalConstructor: boolean

    Returns ProfilerIndexStat

Methods

  • Returns color hue that is assigned (in a way randomly) to the sample upon its insertion into profiler index.

    Returns number

    Hue that should be used for colors representing this index.

  • Returns profiler index to which this stat belongs.

    Returns ProfilerIndex

    Profiler index that created this stat.

  • Returns value applicable for given time point. That means that it will return the first value with time lower or equal to given parameter. If no such value exists, this will return a default StatPoint. This also returns a default StatPoint if there are no points recorded for this Stat.

    Parameters

    • nanoseconds: number

      Required time of returned time point.

    Returns Immutable<ProfilerDatabaseStatPoint>

    Found value or default value if nothing was found.

  • Returns all values between two given times. This begins with the first value with time lower or equal to nanosecondsBegin (if such value exists) and ends with the last value with time lower than nanosecondsEnd. The resulting values are ordered by time, from oldest to newest.

    Parameters

    • OptionalnanosecondsBegin: number

      First time in required range.

    • OptionalnanosecondsEnd: number

      Last time in required range.

    Returns ProfilerDatabaseStatPoint[]

    Values that belong to given time range.