Class PerformanceStatisticsInternal

Performance measurement central.

Remarks

Maintains the current. Implemented as an instance for easy access.

FrameStats, which holds all individual performance numbers.

Hierarchy

  • PerformanceStatistics

Constructors

  • Creates an instance of PerformanceStatistics. Overrides the current instance.

    Parameters

    • Optional enabled: boolean = true

      If false the performance values will not be stored.

    • Optional maxNumFrames: number = 1000

      The maximum number of frames that are to be stored.

    Returns PerformanceStatistics

    Memberof

    PerformanceStatistics

Properties

appResults: Map<string, number> = ...

Additional results stored for the current application run, not per frame. Only the last value is stored.

configs: Map<string, string> = ...

Additional configuration values stored for the current application run, not per frame. Only the last value is stored.

Memberof

PerformanceStatistics

currentFrame: FrameStats = ...

Current frame statistics. Contains all values for the current frame. Will be cleared when [[PerformanceStatistics#storeFrameInfo]] is called.

Memberof

PerformanceStatistics

enabled: boolean = true

If false the performance values will not be stored.

maxNumFrames: number = 1000

The maximum number of frames that are to be stored.

Accessors

Methods

  • Convert to a plain object that can be serialized. Required to copy the test results over to nightwatch.

    Parameters

    • onlyLastFrame: boolean = false

    Returns any

  • Convert the last frame values to a plain object that can be serialized. Required to copy the test results over to nightwatch.

    Returns any

  • Logs all values to the logger.

    Parameters

    • Optional header: string

      Optional header line.

    • Optional footer: string

      Optional footer line.

    Returns void

  • Stores the current frame events into the array of events and clears all values.

    Returns boolean

    Returns false if the maximum number of storable frames has been reached.

    Memberof

    PerformanceStatistics

Generated using TypeDoc