Index

TTLView

new TTLView()

TTLView measures and displays startup time as measured by "first paint".
The load time is displayed in ms next to the type of load event.
There are two possible types of load events, [c] and [w].
[c] cold load time, is measured when the app is not currently running.
[w] warm load time, is measured when the app is backgrounded then launched.

Members

element :Element

A reference to the element which contains the TTLView.

visible

Whether or not the TTLView is visible.

Methods

createElement()

Creates the element for the overlay.

handleEvent(evt)

General event handler interface.
Updates the overlay with as we receive load events.

Parameters:
Name Type Description
evt DOMEvent

The event.

hide()

Hides the overlay.

resetLoadtime()

Resets the load time to a clean slate.

show()

Shows the overlay.

toggle()

Toggles visibility of the overlay.

updateLoadtime(time, type)

Updates the load time.

Parameters:
Name Type Description
time Number

The time to load.

type String

The type of event. Generally a single character.