Timers on the Timeline

When a Timeline recording is taking place during a time() operation, it annotates the timeline as well. Use it when you want to trace what your application does and where it comes from.

How an annotation on the timeline looks from time():

Marking the Timeline

Note: The timeStamp() method only functions while a Timeline recording is in progress.

The Timeline panel provides a complete overview of where the engine spends time.
You can add a mark to the timeline from the console with the timeStamp(). This is a simple way to correlate events in your application with other events.

Counting statement executions

Use the count() method to log a provided string along with the number of times the same string has been provided. When the exact statement is given to count() on the same line, the number is incremented.