* @param driverExtension * @param setTimeout * @param microMetrics Name and description of metrics provided via console.time / console.timeEnd * @param ignoreNavigation If true, don't measure from navigationStart events. These events are * usually triggered by a page load, but can also
(
private _driverExtension: WebDriverExtension,
@Inject(PerflogMetric.SET_TIMEOUT) private _setTimeout: Function,
@Inject(Options.MICRO_METRICS) private _microMetrics: {[key: string]: string},
@Inject(Options.FORCE_GC) private _forceGc: boolean,
@Inject(Options.CAPTURE_FRAMES) private _captureFrames: boolean,
@Inject(Options.RECEIVED_DATA) private _receivedData: boolean,
@Inject(Options.REQUEST_COUNT) private _requestCount: boolean,
@Inject(PerflogMetric.IGNORE_NAVIGATION) private _ignoreNavigation: boolean,
)
| 52 | * usually triggered by a page load, but can also be triggered when adding iframes to the DOM. |
| 53 | **/ |
| 54 | constructor( |
| 55 | private _driverExtension: WebDriverExtension, |
| 56 | @Inject(PerflogMetric.SET_TIMEOUT) private _setTimeout: Function, |
| 57 | @Inject(Options.MICRO_METRICS) private _microMetrics: {[key: string]: string}, |
| 58 | @Inject(Options.FORCE_GC) private _forceGc: boolean, |
| 59 | @Inject(Options.CAPTURE_FRAMES) private _captureFrames: boolean, |
| 60 | @Inject(Options.RECEIVED_DATA) private _receivedData: boolean, |
| 61 | @Inject(Options.REQUEST_COUNT) private _requestCount: boolean, |
| 62 | @Inject(PerflogMetric.IGNORE_NAVIGATION) private _ignoreNavigation: boolean, |
| 63 | ) { |
| 64 | super(); |
| 65 | |
| 66 | this._remainingEvents = []; |
| 67 | this._measureCount = 0; |
| 68 | this._perfLogFeatures = _driverExtension.perfLogFeatures(); |
| 69 | if (!this._perfLogFeatures.userTiming) { |
| 70 | // User timing is needed for navigationStart. |
| 71 | this._receivedData = false; |
| 72 | this._requestCount = false; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | override describe(): {[key: string]: string} { |
| 77 | const res: {[key: string]: any} = { |
nothing calls this directly
no test coverage detected