O'Reilly logo

Learning Laravel 4 Application Development by Hardik Dangar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Profiling Laravel applications

Profiling is measuring the software program's time or memory for a given function/class or any code block. The most common purpose of profiling applications is to aid application optimization.

There are two very good Laravel packages that will allow you to profile your applications:

  • juy/profiler
  • loic-sharma/profiler

Both are based on the Laravel 3 profiler and have almost the same features, but juy/profiler has a few more features and I use it for profiling my applications. Here is a list of things you can track with juy/profiler:

  • Environment information
  • Current controller/action info
  • Routes
  • Log events
  • The SQL query log with syntax highlighting
  • Total execution time
  • Total memory usage
  • All variables passed to views
  • Session variables ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required