Tutorials > Stopwatch
BoltWire comes with a built in stopwatch feature you can use to test various configurations, plugins, etc, to benchmark performance. To use it, put the following in index.php before calling the engine.
It tracks various points in the site processing.
To track how long each function takes set $BOLTstopWatch to 'functions'. To track each command, set $BOLTstopWatch to 'commands'. To track both, set it to 'all'.
You can track other points by inserting the following into the code at various points in the code.
This output is only visible to the superadmin (not just admins). Generally, it is used offline for development purposes.