在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
#yii2-xhprofxhprof for yii2InstallationThe 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 Usage
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/ ];}
|
请发表评论