Esempio n. 1
0
 public static function printDebugShutdown()
 {
     if (!self::$_alreadyPrintedDebugShutdown) {
         $loadTime = microtime(TRUE) - APPLICATION_START_TIME;
         if (self::isVerbose()) {
             if (self::$_muted) {
                 foreach (self::$_muted as $trace) {
                     $icon = ' <span class="debugExpand"> ' . Saf_Layout::getIcon('search') . '</span>';
                     print "\n<div class=\"debugStatus\"><pre>Data:{$icon}<br/>\n";
                     print $trace;
                     print 'Unclosed Mute';
                     print "\n</pre></div>\n";
                 }
             }
         }
         self::$_buffered = FALSE;
         if (self::isVerbose() && strlen(self::$buffer) > 0) {
             print '<div class="debugStatus">Unsent Debug Buffer:<br/><pre>';
             print self::$buffer;
             print '</pre></div>';
         }
         self::out("This page took {$loadTime} seconds to load.", 'STATUS');
         self::$_alreadyPrintedDebugShutdown = TRUE;
     }
 }