diff --git a/config/config.inc.php b/config/config.inc.php index 4ac8edf2f..4132b5d71 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -87,6 +87,9 @@ else * define('__DEBUG_PROTECT_IP__', '127.0.0.1'); * define('__DEBUG_DB_OUTPUT__', 0); * define('__LOG_SLOW_QUERY__', 0); + * define('__LOG_SLOW_TRIGGER__', 0); + * define('__LOG_SLOW_ADDON__', 0); + * define('__LOG_SLOW_WIDGET__', 0); * define('__OB_GZHANDLER_ENABLE__', 1); * define('__ENABLE_PHPUNIT_TEST__', 0); * define('__PROXY_SERVER__', 'http://domain:port/path'); @@ -167,12 +170,54 @@ if(!defined('__LOG_SLOW_QUERY__')) *
 	 * 0: Do not leave a log
 	 * = 0: leave a log when the slow query takes over specified seconds
-	 * Log file is saved as ./files/_db_slow_query.php file
+	 * Log file is saved as ./files/_slowlog_query.php file
 	 * 
*/ define('__LOG_SLOW_QUERY__', 0); } +if(!defined('__LOG_SLOW_TRIGGER__')) +{ + /** + * Trigger excute time log + * + *
+	 * 0: Do not leave a log
+	 * > 0: leave a log when the trigger takes over specified milliseconds
+	 * Log file is saved as ./files/_slowlog_trigger.php
+	 * 
+ */ + define('__LOG_SLOW_TRIGGER__', 0); +} + +if(!defined('__LOG_SLOW_ADDON__')) +{ + /** + * Addon excute time log + * + *
+	 * 0: Do not leave a log
+	 * > 0: leave a log when the trigger takes over specified milliseconds
+	 * Log file is saved as ./files/_slowlog_addon.php
+	 * 
+ */ + define('__LOG_SLOW_ADDON__', 0); +} + +if(!defined('__LOG_SLOW_WIDGET__')) +{ + /** + * Widget excute time log + * + *
+	 * 0: Do not leave a log
+	 * > 0: leave a log when the widget takes over specified milliseconds
+	 * Log file is saved as ./files/_slowlog_widget.php
+	 * 
+ */ + define('__LOG_SLOW_WIDGET__', 0); +} + if(!defined('__DEBUG_QUERY__')) { /**