Commit Graph

41 Commits

Author SHA1 Message Date
Taylor Otwell 7888309502 Merge pull request #1663 from neoascetic/anbu_fix
Fix bug in ANBU that cause wrong total time showing on SQL tab
2013-03-28 14:53:50 -07:00
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
Pavel Puchkin a2cafaa367 Fix bug in ANBU that cause wrong total time showing on Queries tab
When query time is larger than one second 'array_sum' cannot convert it
to float right. Also, it is better to fire 'laravel.query' event with
raw time as an argument rather than its string representation
2013-02-01 11:10:02 +11:00
Taylor Otwell abff7d8e7d Merge branch 'master' into develop 2013-01-06 14:01:18 -06:00
Taylor Otwell d089046160 Merge pull request #1312 from franzliedke/patch-53
DB::escape()
2013-01-05 13:03:31 -08:00
Dan Rogers 4e8b452b66 Use $.noConflict in profiler to allow multiple jQuery versions.
Signed-off-by: Dan Rogers <dan.rogers@bkwld.com>
2013-01-03 15:04:45 -08:00
Dan Rogers f4dd93ad67 Allow custom profiler.js path, which makes jQuery dependency optional.
Signed-off-by: Dan Rogers <dan.rogers@bkwld.com>
2013-01-02 17:41:07 -08:00
Darkimmortal c63ed36c73 fixed white-on-white profiler text
Signed-off-by: Darkimmortal <admin@imgkk.com>
2012-12-27 03:33:33 +00:00
Josh Betz 113dcc9b37 Reset the profiler bar
We want to reset the profiler bar so that it's still readable even if the page's font color is light or borders are added to links.
2012-11-17 10:41:48 -06:00
Christian Tamayo a6db03d700 beautifies profiler tabs to cursor:pointer
Signed-off-by: Christian Tamayo <christianzt19@yahoo.com>
2012-10-20 22:30:59 +08: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
Dayle Rees 7298c93be1 Merge pull request #1109 from JesseObrien/feature/profiler-timers
Added profile timers
2012-08-17 13:28:28 -07:00
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
Jason Lewis 694f696cb6 Merge pull request #1063 from stayallive/develop
Changed jQuery '$' to 'jQuery' in the Profiler
2012-08-11 09:20:50 -07:00
Alex Bouma f0e261c87f Changed jQuery '$' to 'jQuery' in the Profiler
Changed the '$' to 'jQuery' in profiler.js because it conflicts with libs like 'prototype.js'.

I did not use '.noConflict()' because of the people that do use the '$'.

Signed-off-by: Alex Bouma <info@alboweb.nl>
2012-08-05 00:34:54 +03: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 94e9106b76 Display memory usage (and peak usage) in the profiler bar, too. 2012-07-02 03:42:43 +03:00
Franz Liedke 98b92185e3 Calculate memory and peak memory usage in profiler, too. 2012-07-02 03:38:58 +03:00
Franz Liedke bcd63ab5af We can be fairly sure the $time variable is set in the profiler view. 2012-06-25 14:56:42 +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 c74123098b Render page generation time on anbu profiler console. 2012-06-24 21:27:57 +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
Guillaume Lambert 5f0e70a2ef fixed a conflict with .hidden class when using twitter bootstrap and made animation smoother
Signed-off-by: Guillaume Lambert <falzhobel@gmail.com>
2012-05-22 23:33:02 -04:00
Guillaume Lambert fa6d0e92a9 added prevent default to anbu events and linted/formatted profiler.js code, profiler config in application back to false
Signed-off-by: Guillaume Lambert <falzhobel@gmail.com>
2012-05-22 23:09:56 -04:00
Guillaume Lambert 7cc4df852b added prevent default to anbu events and linted/formatted profiler.js code
Signed-off-by: Guillaume Lambert <falzhobel@gmail.com>
2012-05-22 23:03:29 -04:00
Taylor Otwell fe36d7fdfb Added total SQL execution time to profiler.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-04-04 17:08:16 -05:00
Dayle Rees b5847c1f3a fixed logo bug 2012-04-04 20:14:20 +01:00
Dayle Rees 95b4b0924b added logo base64d to profiler 2012-04-04 20:05:38 +01: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 b58c6370ee fixing template. 2012-04-03 17:07:37 -05:00
Taylor Otwell 1ca7d799af changes 2012-04-03 16:53:15 -05:00