Skip to content

Commit a215132

Browse files
committed
Xdebug - added support for compressed profiles.
1 parent bd13e76 commit a215132

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Clockwork/DataSource/XdebugDataSource.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public function extend(Request $request)
2020

2121
if ($profile && ! preg_match('/\.php$/', $profile) && is_readable($profile)) {
2222
$request->xdebug['profileData'] = file_get_contents($profile);
23+
24+
if (preg_match('/\.gz$/', $profile)) {
25+
$request->xdebug['profileData'] = gzdecode($request->xdebug['profileData']);
26+
}
2327
}
2428

2529
return $request;

0 commit comments

Comments
 (0)