mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Finalize debug data format and allow all statistics to be collected
This commit is contained in:
parent
8394afce74
commit
ac8460d782
10 changed files with 140 additions and 141 deletions
|
|
@ -442,8 +442,8 @@ class widgetController extends widget
|
|||
function execute($widget, $args, $javascript_mode = false, $escaped = true)
|
||||
{
|
||||
// Save for debug run-time widget
|
||||
if(__DEBUG__==3) $start = microtime(true);
|
||||
$before = microtime(true);
|
||||
$start = microtime(true);
|
||||
|
||||
// urldecode the value of args haejum
|
||||
$object_vars = get_object_vars($args);
|
||||
if(count($object_vars))
|
||||
|
|
@ -640,13 +640,10 @@ class widgetController extends widget
|
|||
if($args->widgetstyle) $widget_content_body = $this->compileWidgetStyle($args->widgetstyle,$widget, $widget_content_body, $args, $javascript_mode);
|
||||
|
||||
$output = $widget_content_header . $widget_content_body . $widget_content_footer;
|
||||
|
||||
// Debug widget creation time information added to the results
|
||||
if(__DEBUG__==3) $GLOBALS['__widget_excute_elapsed__'] += microtime(true) - $start;
|
||||
|
||||
$after = microtime(true);
|
||||
|
||||
$elapsed_time = $after - $before;
|
||||
|
||||
$elapsed_time = microtime(true) - $start;
|
||||
$GLOBALS['__widget_excute_elapsed__'] += $elapsed_time;
|
||||
$slowlog = new stdClass;
|
||||
$slowlog->caller = "widget.execute";
|
||||
$slowlog->called = $widget;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue