mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-14 21:30:17 +08:00
Merge pull request #1723 from Ragazzo/profile_panel_fix
detailed view profile panel fix
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
use yii\grid\GridView;
|
use yii\grid\GridView;
|
||||||
|
use yii\helpers\Html;
|
||||||
?>
|
?>
|
||||||
<h1>Performance Profiling</h1>
|
<h1>Performance Profiling</h1>
|
||||||
<p>Total processing time: <b><?php echo $time; ?></b>; Peak memory: <b><?php echo $memory; ?></b>.</p>
|
<p>Total processing time: <b><?php echo $time; ?></b>; Peak memory: <b><?php echo $memory; ?></b>.</p>
|
||||||
@@ -21,8 +22,9 @@ echo GridView::widget([
|
|||||||
[
|
[
|
||||||
'attribute' => 'info',
|
'attribute' => 'info',
|
||||||
'value' => function ($data) {
|
'value' => function ($data) {
|
||||||
return str_repeat('<span class="indent">→</span>', $data['level']) . $data['info'];
|
return str_repeat('<span class="indent">→</span>', $data['level']) . Html::encode($data['info']);
|
||||||
},
|
},
|
||||||
|
'format' => 'html',
|
||||||
'options' => [
|
'options' => [
|
||||||
'width' => '60%',
|
'width' => '60%',
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user