performance profiling - 95% of the time is spent in "conversation()" e.g. rendering and templates, even with the new theme engine. The time spent in the DB is miniscule. Will have to profile the bbcode processing and template engines individually to drill down further.
This commit is contained in:
@@ -489,6 +489,10 @@ function dlogger($msg,$level = 0) {
|
||||
}}
|
||||
|
||||
|
||||
function profiler($t1,$t2,$label) {
|
||||
if(file_exists('profiler.out') && $t1 && t2)
|
||||
@file_put_contents('profiler.out', sprintf('%01.4f %s',$t2 - $t1,$label) . "\n", FILE_APPEND);
|
||||
}
|
||||
|
||||
|
||||
if(! function_exists('activity_match')) {
|
||||
|
||||
Reference in New Issue
Block a user