Messages and Timers

On this page

Messages and Timers

Messages

Messages shows output from lensMessage and lensDump. Dumped values show as a collapsible tree. When you enable collectors.logs, log messages appear below the messages.

The Messages panel with info and warn messages

lensMessage( "Cart loaded", "info" );
lensMessage( { items : 3, total : 42.5 }, "debug" );
lensDump( cart, "cart" );

collectors.messages.max caps the list (default 200). Values pass through redaction and the limits caps.

Timers

Timers shows spans from lensStart, lensStop, lensMeasure and lensAddMeasure, with their start and duration. They also show on the Timeline.

The Timers panel

lensStart( "report" );
buildReport();
lensStop( "report" );

collectors.timers.max caps the list (default 200).