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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?