yii-db-profiler

Yii profiler adjusted to deal with MySQL performance optimizations

Github星跟踪图

DB profiler

Instead of regular CProfileLogRoute DB profiler displays database queries and
query-related info only. Also it have an ability to highligt possibly slow queries
and queries repeated many times.

Installation

Unpack to protected/extensions/. Add the following to your protected/config/main.php:

<?php
return array(
	// …
	'components' => array(
		// …
		'db' => array(
			// …
			'enableProfiling'=>true,
			'enableParamLogging' => true,
		),
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
					// …
            	    array(
                	    'class'=>'ext.db_profiler.DbProfileLogRoute',
						'countLimit' => 1, // How many times the same query should be executed to be considered inefficient
						'slowQueryMin' => 0.01, // Minimum time for the query to be slow
                	),
			),
		),
	),
);

主要指标

概览
名称与所有者samdark/yii-db-profiler
主编程语言PHP
编程语言PHP (语言数: 1)
平台
许可证
所有者活动
创建于2013-04-04 12:53:46
推送于2014-02-14 15:07:09
最后一次提交2014-02-14 18:07:09
发布数1
最新版本名称v1.0.0 (发布于 2013-04-04 16:55:23)
第一版名称v1.0.0 (发布于 2013-04-04 16:55:23)
用户参与
星数24
关注者数6
派生数8
提交数3
已启用问题?
问题数2
打开的问题数1
拉请求数1
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?