From: Evan Prodromou Date: Thu, 7 Apr 2011 04:07:39 +0000 (-0400) Subject: Revert "add some timing comments to output to debug poor performance" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ca0f59d46a5b1b6a3b39f151c0118e46520a9e5a;p=quix0rs-gnu-social.git Revert "add some timing comments to output to debug poor performance" This reverts commit a2782523d75d73ad833a6e0440c60f3bcb647d33. --- diff --git a/lib/action.php b/lib/action.php index d8efad0740..48a9cdeb3d 100644 --- a/lib/action.php +++ b/lib/action.php @@ -118,7 +118,7 @@ class Action extends HTMLOutputter // lawsuit } } - function timingComment() + function endHTML() { global $_startTime; @@ -127,15 +127,10 @@ class Action extends HTMLOutputter // lawsuit $diff = round(($endTime - $_startTime) * 1000); $this->raw(""); } - } - function endHTML() - { - $this->timingComment(); return parent::endHTML(); } - /** * Show head, a template method. * @@ -144,7 +139,6 @@ class Action extends HTMLOutputter // lawsuit function showHead() { // XXX: attributes (profile?) - $this->timingComment(); $this->elementStart('head'); if (Event::handle('StartShowHeadElements', array($this))) { if (Event::handle('StartShowHeadTitle', array($this))) { @@ -160,7 +154,6 @@ class Action extends HTMLOutputter // lawsuit Event::handle('EndShowHeadElements', array($this)); } $this->elementEnd('head'); - $this->timingComment(); } /** @@ -474,31 +467,25 @@ class Action extends HTMLOutputter // lawsuit */ function showBody() { - $this->timingComment(); $this->elementStart('body', (common_current_user()) ? array('id' => strtolower($this->trimmed('action')), 'class' => 'user_in') : array('id' => strtolower($this->trimmed('action')))); $this->elementStart('div', array('id' => 'wrap')); if (Event::handle('StartShowHeader', array($this))) { - $this->timingComment(); $this->showHeader(); $this->flush(); - $this->timingComment(); Event::handle('EndShowHeader', array($this)); } $this->showCore(); $this->flush(); if (Event::handle('StartShowFooter', array($this))) { - $this->timingComment(); $this->showFooter(); $this->flush(); - $this->timingComment(); Event::handle('EndShowFooter', array($this)); } $this->elementEnd('div'); $this->showScripts(); $this->elementEnd('body'); - $this->timingComment(); } /** @@ -716,24 +703,18 @@ class Action extends HTMLOutputter // lawsuit $this->elementStart('div', array('id' => 'content_wrapper')); $this->elementStart('div', array('id' => 'site_nav_local_views_wrapper')); if (Event::handle('StartShowLocalNavBlock', array($this))) { - $this->timingComment(); $this->showLocalNavBlock(); $this->flush(); - $this->timingComment(); Event::handle('EndShowLocalNavBlock', array($this)); } if (Event::handle('StartShowContentBlock', array($this))) { - $this->timingComment(); $this->showContentBlock(); $this->flush(); - $this->timingComment(); Event::handle('EndShowContentBlock', array($this)); } if (Event::handle('StartShowAside', array($this))) { - $this->timingComment(); $this->showAside(); $this->flush(); - $this->timingComment(); Event::handle('EndShowAside', array($this)); } $this->elementEnd('div');