代码拉取完成,页面将自动刷新
The preferred way to install this extension is through composer.
Either run
php composer.phar require fbi/yii2-xhprof "*"
for dev-master
php composer.phar require fbi/yii2-xhprof "dev-master"
or add
"fbi/yii2-xhprof": "*"
to the require section of your composer.json
file.
defined('YII_PROFILE') or define('YII_PROFILE',true);
if (YII_PROFILE){
$config['bootstrap'][] = 'xhprof';
$config['modules']['xhprof'] = [
'class'=>'fbi\xhprof\Module',
'frequency'=>1000,//record rate
'minExcutionTime'=>1,//
//'name'=>'linkserver',//xhprof source,default value: Yii::$app->id
//'dir'=>'/tmp',//record path ,default value: @runtime/xhprof/
];
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。