Skip to content

Commit

Permalink
Update XHProfMiddleware.php
Browse files Browse the repository at this point in the history
Fix - first request after enabling xhprof did not get profiled
  • Loading branch information
Sairahcaz authored Oct 12, 2022
1 parent 469d876 commit 08e1d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/XHProfMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function handle(Request $request, Closure $next)

//if profiler is enabled in config, don't wait for ?_profile=1 get parameter (which sets the cookie)
//to start profiling, just enable it immediately
setcookie('_profile', 1);
$_COOKIE['_profile'] = 1;

require_once public_path(). '/vendor/xhprof/external/header.php';
}
Expand Down

0 comments on commit 08e1d80

Please sign in to comment.