Global

Members

(constant) lighthouse

License:
  • Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Source:

Methods

captureJSCallUsage(funcRef, setnon-null) → {function}

Tracks function call usage. Used by captureJSCalls to inject code into the page.

Source:
Parameters:
Name Type Description
funcRef function

The function call to track.

set Set

An empty set to populate with stack traces. Should be on the global object.

Returns:
Type:
function

A wrapper around the original function.

checkTimeSinceLastLongTask()

Used by _waitForCPUIdle and executed in the context of the page, returns time since last long task. instanbul ignore next

Source:

getCSSPropsInStyleSheet(parseTreenon-null) → (non-null) {Array}

Source:
Parameters:
Name Type Description
parseTree gonzales.AST
Returns:
Type:
Array

registerPerformanceObserverInPage()

Used by _waitForCPUIdle and executed in the context of the page, updates the ____lastLongTask property on window to the end time of the last long task. instanbul ignore next

Source:

wrapRuntimeEvalErrorInBrowser(err)

The exceptionDetails provided by the debugger protocol does not contain the useful information such as name, message, and stack trace of the error when it's wrapped in a promise. Instead, map to a successful object that contains this information.

Source:
Parameters:
Name Type Description
err string | Error

The error to convert istanbul ignore next

Type Definitions

GathererResults

Source:
Type:
  • Object.<string, !Array.<!Promise.<*>>>