Git Product home page Git Product logo

shittyprofiler's Introduction

Laravel Shitty Profiler

A shitty profiler for Laravel. It only shows some quick and dirty stats, but it's unobtrusive and easy to configure.

Installation

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.

Usage

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.

Custom Markers

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');

shittyprofiler's People

Contributors

pitekantrop avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

shittyprofiler's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.