Index

DevtoolsView

new DevtoolsView(data)

DevtoolsView displays metrics as an overlay on top of mozapps.

Parameters:
Name Type Description
data Object

The data to update the devtools view with.

Methods

colorHash(name)

Given a color name, returns a styled CSS background value.

Parameters:
Name Type Description
name String

The name of the color.

display(data)

Displays the devtools view if it does not exist and updates with data.
Currently we measure errors, warnings, and reflows.

Parameters:
Name Type Description
data Object

The data to update the devtools view with.

widget(metric)

Updates a single metric to be displayed.

Parameters:
Name Type Description
metric Object

The metric to be updated.