public function outputAction($startTime, $showProfiler)
    {
        $data = ['showProfiler' => $showProfiler];
        if ($showProfiler) {
            $data = [
                'showProfiler' => true,
                'memory' => \Shade\Converter::formatBytes(memory_get_usage(true)),
                'memoryPeak' => \Shade\Converter::formatBytes(memory_get_peak_usage(true)),
                'execTime' => (microtime(true) - $startTime),
            ];
        }

        return $this->render('system/profiler.phtml', $data);
    }
public function outputAction($startTime, $showProfiler)
    {
        $data = ['showProfiler' => $showProfiler];
        if ($showProfiler) {
            $data = [
                'showProfiler' => true,
                'memory' => \Shade\Converter::formatBytes(memory_get_usage(true)),
                'memoryPeak' => \Shade\Converter::formatBytes(memory_get_peak_usage(true)),
                'execTime' => (microtime(true) - $startTime),
            ];
        }

        return $this->render('system/profiler.phtml', $data);
    }
public function outputAction ( $ startTime , $ showProfiler ) { $ data = [ 'showProfiler' => $ showProfiler ] ; if ( $ showProfiler ) { $ data = [ 'showProfiler' => true , 'memory' => \ Shade \ Converter :: formatBytes ( memory_get_usage ( true ) ) , 'memoryPeak' => \ Shade \ Converter :: formatBytes ( memory_get_peak_usage ( true ) ) , 'execTime' => ( microtime ( true ) - $ startTime ) , ] ; } return $ this -> render ( 'system/profiler.phtml' , $ data ) ; }
Output profiler information

@param string $startTime Application start time
@param bool   $showProfiler Is debug mode enabled

@return \Shade\Response
Output profiler information