Commit Graph

19 Commits

Author SHA1 Message Date
Eugen
944d98d16e Fix for double escaping of queries in the profiler
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à!
2013-03-23 00:58:43 +01:00
Franz Liedke
d7dfd4f915 Use DB::escape() shortcut in profiler. 2012-10-11 18:24:43 +03:00
Nathan Malcolm
2d5cc12b7b Fixes XSS vulnerability in Profiler 2012-10-03 00:53:20 +01:00
kapil verma
c1bcfec3d2 Turn profiler off using runtime Config
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
2012-09-06 04:42:58 +05:30
Jesse O'Brien
7193f29240 Added profile timers
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){});
2012-08-17 16:22:12 -04:00
Sergii Grebeniuk
690e8572aa phpdoc fixes 2012-08-03 18:17:48 +03:00
Dayle Rees
a0fd22f6f1 Merge pull request #772 from loic-sharma/patch-3
Fixed bug where the profiler did not correctly put quotes around bindings
2012-07-31 08:42:47 -07:00
Franz Liedke
6b5cccc15f Move get_file_size() helper function to helpers.php. 2012-07-07 02:13:44 +02:00
Franz Liedke
98b92185e3 Calculate memory and peak memory usage in profiler, too. 2012-07-02 03:38:58 +03:00
Franz Liedke
204a64f006 Simply use the LARAVEL_START constant for calculation page generation time in profiler. 2012-06-25 14:56:04 +03:00
Franz Liedke
52f98b7cf6 Use start_time attribute like a static attribute (as it is). 2012-06-25 01:12:31 +03:00
Franz Liedke
59397eb726 Calculate the total render time in the profiler. 2012-06-24 21:17:32 +03:00
Loic Sharma
f2e915f13d Improved the way the quotes were added to the bindings. 2012-06-05 22:57:56 -05:00
Loic Sharma
ea3021f3dd Fixed bug where the profiler did not correctly put quotes around bindings 2012-06-05 22:46:35 -05:00
Dayle Rees
ad57ae4fdf jquery loading and css fixes 2012-04-04 18:25:29 +01:00
Taylor Otwell
8f24d83233 fixing profiler. 2012-04-04 08:59:44 -05:00
Taylor Otwell
17bd505ff6 pass response in laravel done event. 2012-04-04 08:36:43 -05:00
Taylor Otwell
507bba60ca dont show profiler bar on ajax request. 2012-04-03 20:22:01 -05:00
Taylor Otwell
1ca7d799af changes 2012-04-03 16:53:15 -05:00