debug on the demo server
This commit is contained in:
@@ -46,12 +46,9 @@ function PMA_chart_profiling($data)
|
||||
$chartData[$key] = $value;
|
||||
}
|
||||
|
||||
error_reporting(E_ALL);
|
||||
echo "before new";
|
||||
$chart = new PMA_pChart_Pie(
|
||||
__('Query execution time comparison (in microseconds)'),
|
||||
$chartData);
|
||||
echo "after new";
|
||||
echo $chart->toString();
|
||||
}
|
||||
|
||||
|
@@ -33,10 +33,12 @@ abstract class PMA_pChart_Chart extends PMA_Chart
|
||||
|
||||
protected function render()
|
||||
{
|
||||
echo "before ob_start";
|
||||
ob_start();
|
||||
imagepng($this->chart->Picture);
|
||||
$output = ob_get_contents();
|
||||
ob_end_clean();
|
||||
echo "after ob_end_clean";
|
||||
|
||||
$this->imageEncoded = base64_encode($output);
|
||||
}
|
||||
@@ -44,8 +46,11 @@ abstract class PMA_pChart_Chart extends PMA_Chart
|
||||
public function toString()
|
||||
{
|
||||
$this->prepareDataSet();
|
||||
echo "after neprepareDataSetw";
|
||||
$this->prepareChart();
|
||||
echo "after prepareChart";
|
||||
$this->render();
|
||||
echo "after render";
|
||||
|
||||
return '<img id="pChartPicture1" src="data:image/png;base64,'.$this->imageEncoded.'" />';
|
||||
}
|
||||
|
Reference in New Issue
Block a user