* Support output xhprof for send.
This commit is contained in:
@@ -955,6 +955,7 @@ class baseControl
|
||||
for($i = 0; $i < $obLevel; $i++) ob_end_clean();
|
||||
|
||||
$response = helper::removeUTF8Bom(urldecode(json_encode($data)));
|
||||
$this->app->outputXhprof();
|
||||
die($response);
|
||||
}
|
||||
|
||||
|
||||
@@ -718,7 +718,7 @@ class baseRouter
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected function outputXhprof()
|
||||
public function outputXhprof()
|
||||
{
|
||||
if(empty($this->config->debug) || $this->config->debug < 4 || !extension_loaded('xhprof')) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user