yii-db-profiler

Yii profiler adjusted to deal with MySQL performance optimizations

Github stars Tracking Chart

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
                	),
			),
		),
	),
);

Main metrics

Overview
Name With Ownersamdark/yii-db-profiler
Primary LanguagePHP
Program languagePHP (Language Count: 1)
Platform
License:
所有者活动
Created At2013-04-04 12:53:46
Pushed At2014-02-14 15:07:09
Last Commit At2014-02-14 18:07:09
Release Count1
Last Release Namev1.0.0 (Posted on 2013-04-04 16:55:23)
First Release Namev1.0.0 (Posted on 2013-04-04 16:55:23)
用户参与
Stargazers Count24
Watchers Count6
Fork Count8
Commits Count3
Has Issues Enabled
Issues Count2
Issue Open Count1
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private