Tideways.php
public static function startDevelopment($apiKey = null, array $options = array())
    {
        if ($apiKey) {
            $options['api_key'] = $apiKey;
        } else if (!isset($options['api_key'])) {
            $options['api_key'] = isset($_SERVER['TIDEWAYS_APIKEY']) ? $_SERVER['TIDEWAYS_APIKEY'] : ini_get("tideways.api_key");
        }

        $time = time() + 60;
        $_SERVER['TIDEWAYS_SESSION'] =
            "time=" . $time . "&user=&method=&hash=" .
            hash_hmac('sha256', 'method=&time=' . $time . '&user=', md5($options['api_key']))
        ;

        self::start($options);
    }
public static function startDevelopment($apiKey = null, array $options = array())
    {
        if ($apiKey) {
            $options['api_key'] = $apiKey;
        } else if (!isset($options['api_key'])) {
            $options['api_key'] = isset($_SERVER['TIDEWAYS_APIKEY']) ? $_SERVER['TIDEWAYS_APIKEY'] : ini_get("tideways.api_key");
        }

        $time = time() + 60;
        $_SERVER['TIDEWAYS_SESSION'] =
            "time=" . $time . "&user=&method=&hash=" .
            hash_hmac('sha256', 'method=&time=' . $time . '&user=', md5($options['api_key']))
        ;

        self::start($options);
    }
public static function startDevelopment ( $ apiKey = null , array $ options = array ( ) ) { if ( $ apiKey ) { $ options [ 'api_key' ] = $ apiKey ; } else if ( ! isset ( $ options [ 'api_key' ] ) ) { $ options [ 'api_key' ] = isset ( $ _SERVER [ 'TIDEWAYS_APIKEY' ] ) ? $ _SERVER [ 'TIDEWAYS_APIKEY' ] : ini_get ( "tideways.api_key" ) ; } $ time = time ( ) + 60 ; $ _SERVER [ 'TIDEWAYS_SESSION' ] = "time=" . $ time . "&user=&method=&hash=" . hash_hmac ( 'sha256' , 'method=&time=' . $ time . '&user=' , md5 ( $ options [ 'api_key' ] ) ) ; self :: start ( $ options ) ; }
Start profiling in development mode.

This will always generate a full profile and send it to the profiler.
It adds a correlation id that forces the profile into "developer"
traces and activates the memory profiling as well.

WARNING: This method can cause huge performance impact on production
setups. Make sure to wrap this in your own sampling code and don't
execute it in every request.
Start profiling in development mode .