PerfStatsInterface

Manages the PerfStats interface used for collecting Firefox performance counters.

Classes

PerfStatsInterface

Methods

(async) collect() → {Object}

Returns an object that has cumulative perfstats statistics across each process for the features that were enabled. Should be called before stop().
Throws:
Throws an error if not running Firefox.
Type
Error
Returns:
Returns an object with cumulative results.
Type: 
Object

(async) start() → {Promise.<void>}

Starts PerfStats collection based on the given feature mask.
Throws:
Throws an error if not running Firefox.
Type
Error
Returns:
A promise that resolves when collection has started.
Type: 
Promise.<void>

(async) stop() → {Promise.<void>}

Stops PerfStats collection.
Throws:
Throws an error if not running Firefox.
Type
Error
Returns:
A promise that resolves when collection has stopped.
Type: 
Promise.<void>