Laravel Server Timing Pack

Laravel Server Is a package from Marcel Pociot that allows you to easily add server scheduling information to your Timing applications.

Server scheduling information helps you get device request/response data from the server for data at a glance that you want to appear in the browser.

After you install the Server Schedule package, the following metrics are available:

  • Bootstrap
  • Application time
  • Total

Here's an example of server scheduling information, as seen in Google Chrome using the default tool values:

ServerTiming You can add additional metrics to this package with :

ServerTiming::start('Running expensive task');// do somethingServerTiming::stop('Running expensive task');// If you already know the exact time:
ServerTiming::setDuration('Running expensive task', 1200);
// Measure the duration of the closure:
ServerTiming::setDuration('Running expensive task', function() {

Finally, an example that uses the default metrics:

Server-Timing: bootstrap;desc="Bootstrap";d ur=32.552003860474, app;desc="App";d ur=8, total;desc="Total";d ur=41.576147079468,

You can learn more about this package, get all the installation instructions, and view the source code on GitHub at beyondcode / laravel-server-timing.


KARABAY A, 2020 . Laravel Server Timing Pack,

(Accessed February 22, 2020).

  Share this post

Comments (0)


Sign up for the email newsletter to be the first to know about my blog posts