Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fix missing profiling header on ajax requests
Browse files Browse the repository at this point in the history
On ajax requests, the xhprof profiler stops in a previous listener (not in Response listener).
Because of that, the `$this->collector->stopProfiling` call returned wrong run id (link) in the `onCoreResponse` event.
  • Loading branch information
AMoQu committed Feb 24, 2015
1 parent 2a0651a commit 157a234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataCollector/XhprofCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private function getFlags()
public function stopProfiling($serverName, $uri)
{
if (!$this->collecting) {
return false;
return $this->data['xhprof'] ? $this->data['xhprof'] : false;
}

$this->collecting = false;
Expand Down

0 comments on commit 157a234

Please sign in to comment.