includes/Profiler.php
/**
     * Starts tracking activity time for given profile
     * 
     * @param string $name
     */
Starts tracking activity time for given profile

@param string $name
Starts tracking activity time for given profile @param string $name
public static function startProfiler($name) {
        if (!empty($name)) {
            if (empty(self::$profilers[$name])) {
                self::$profilers[$name] = array(
                    self::PROFILER_START_TIME => microtime(true),
                    self::PROFILER_END_TIME   => null
                );
            }
        } else {
            Logger::getLogger()->LogWarn('Empty profiler name provided!');
        }
    }
public static function startProfiler ( $ name ) { if ( ! empty ( $ name ) ) { if ( empty ( self :: $ profilers [ $ name ] ) ) { self :: $ profilers [ $ name ] = array ( self :: PROFILER_START_TIME => microtime ( true ) , self :: PROFILER_END_TIME => null ) ; } } else { Logger :: getLogger ( ) -> LogWarn ( 'Empty profiler name provided!' ) ; } }
Starts tracking activity time for given profile
Starts tracking activity time for given profile