Skip to content

Commit

Permalink
fixup! Update composer.json: Add "xhprof/xhprof" dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Apr 20, 2024
1 parent 2d01e8b commit c0a69c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DevInvoker.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private function devInvoke(ResourceObject $resource, AbstractRequest $request):
$resource->headers[self::HEADER_MEMORY_USAGE] = (string) (memory_get_usage() - $memory);
if (extension_loaded('xhprof')) {
$xhprof = xhprof_disable();
$profileId = (new XHProfRuns_Default(sys_get_temp_dir()))->save_run($xhprof, 'resource'); // @phpstan-ignore-line
$profileId = (new XHProfRuns_Default(sys_get_temp_dir()))->save_run($xhprof, 'resource');
$resource->headers[self::HEADER_PROFILE_ID] = $profileId;
}

Expand Down

0 comments on commit c0a69c4

Please sign in to comment.