http://sharpeleven. net/ kilauea/ logger

Constructor Parameters

instthe Kilauea.Instance for which the plugin is instantiated
paramsa parameter object {resultDestination: <’panel’,’popup’:’panel’>, resultFormat: <’html’,’csv’:’html’>, discardFastFlips: <boolean:false>, discardThreshold: <milliseconds:1500>, autoStart: <boolean:false>}
Summary
An array which contains LogEntries.
Starts a new measurement.
Pauses measuring.
Resumes measuring.
Stops measuring.
Evaluates the current measurement and displays the results.
Closes the result panel or window.
A log entry.
The Kilauea.Slide.id of the slide passed in the construcor.
A UNIX timestamp keeping the start time of this slide in milliseconds since 1970/1/1.
Equivalent to start, stop keeps the timestamp of the end time of this slide.
Computes the time spent for viewing this slide; in milliseconds.

Properties

logData

An array which contains LogEntries.

Functions

start

start: function()

Starts a new measurement.

pause

pause: function()

Pauses measuring.  The measurement can be resumed without any loss of log data.  Evaluation is not possible while pausing, though.

resume

resume: function()

Resumes measuring.  This method is called either after pausing or stopping a measurement by calling pause or stop, respectively.  In either case, the current measurement is continued, and no data is lost.

stop

stop: function()

Stops measuring.  Once the measurement is stopped, evaluation wicht evaluate is possible.

evaluate

evaluate: function()

Evaluates the current measurement and displays the results.  This method can be called multiple times, for instance after calling close.

close

close: function()

Closes the result panel or window.  After closing the results, one can either evaluate or resume the current measurement again, or one can start a new measurement.

LogEntry

A log entry.  This class is used for the data entries in logData.

Parameters

slidea Kilauea.Slide
Summary
The Kilauea.Slide.id of the slide passed in the construcor.
A UNIX timestamp keeping the start time of this slide in milliseconds since 1970/1/1.
Equivalent to start, stop keeps the timestamp of the end time of this slide.
Computes the time spent for viewing this slide; in milliseconds.

Properties

slide

The Kilauea.Slide.id of the slide passed in the construcor.

start

A UNIX timestamp keeping the start time of this slide in milliseconds since 1970/1/1.

stop

Equivalent to start, stop keeps the timestamp of the end time of this slide.

Functions

getDuration

this.getDuration = function()

Computes the time spent for viewing this slide; in milliseconds.

A log entry.
start: function()
Starts a new measurement.
pause: function()
Pauses measuring.
resume: function()
Resumes measuring.
stop: function()
Stops measuring.
evaluate: function()
Evaluates the current measurement and displays the results.
close: function()
Closes the result panel or window.
The slide’s ID, which is the array index of the slide within Kilauea.Instance.slides.
A UNIX timestamp keeping the start time of this slide in milliseconds since 1970/1/1.
Equivalent to start, stop keeps the timestamp of the end time of this slide.
this.getDuration = function()
Computes the time spent for viewing this slide; in milliseconds.
The Kilauea Instance Class
The Slide Class