Fist Full of Pixels

Blog

A performance indicator badge for ExpressionEngine

One of the great things about ExpressionEngine is its flexibility. Sometimes, you can get so excited though, that you wind up coding yourself into knots, with templates running hundreds of queries per page load (of course this can be alleviated by caching).

ExpressionEngine’s output profiler and template debugging are very helpful tools, but what about when you just need to know about the total number of queries and the time EE spent parsing the template?

Look no further. Make a new snippet and copy this code into it, then place the snippet anywhere in the <body> element.

The badge will only display for logged in Super Admin users, so you won’t need to worry about it appearing for regular visitors.

Fork and enjoy!

Permalink | Filed under Geekery, Web