Package Data | |
---|---|
Maintainer Username: | pitekantrop |
Maintainer Contact: | pitekantop@gmx.com (pitekantrop) |
Package Create Date: | 2013-12-12 |
Package Last Update: | 2014-07-27 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:10:29 |
Package Statistics | |
---|---|
Total Downloads: | 2,156 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 1 |
A shitty profiler for Laravel. It only shows some quick and dirty stats, but it's unobtrusive and easy to configure.
Add the following to your composer.json
file:
"pitekantrop/shittyprofiler":"*"
Then, run composer update
or composer install
if you haven't already installed any packages.
While you're waiting, add the following line to the providers
array in app/config/app.php
:
'Pitekantrop\ShittyProfiler\ProfilerServiceProvider',
And the profiler is installed.
While your app is in debug mode simply add the ?profile
query string to the URL of the request that you wish to inspect, and the usual output will be replaced with the profiler view.
To measure time from the application start up to a certain point add the following marker in your code:
Profiler::mark('CustomMarker');
It is also possible to measure time between two markers:
Profiler::mark('AnotherCustomMarker');
// Some code
Profiler::mark('AnotherCustomMarkerEnd');