Sometimes the logged queries would be rendered with visible
HTML entities in the profiler, due to double encoding (You know,
> stuff). I could not find out why it was being escaped
twice, but I found an easy fix: since PHP 5.2.3 the htmlspecialchars
function had a double_encoding parameter that could be set
to false. Voilà!
just added a check in Profiler's render method to also look at Config::get('application.profiler') as laravel allows changing config during runtime. This allows turning off profiler for certain actions
Track the running time of a function
Profiler::time(function(){});
Profiler::time(function(){}, 'name');
Track a stopwatch style timer throughout your app
Profiler::tick('name');
Profiler::tick('name', function($timer){});