app/code/community/Varien/Profiler.php
public static function getConfiguration()
    {
        if (is_null(self::$_configuration)) {
            self::$_configuration = new stdClass();
            self::$_configuration->trigger = 'never';
            self::$_configuration->filters = new stdClass();

            $file = BP . DIRECTORY_SEPARATOR . 'var' . DIRECTORY_SEPARATOR . 'aoe_profiler.xml';
            if (is_file($file)) {
                $conf = simplexml_load_file($file);
                if ($conf !== false) {
                    self::$_configuration->trigger = (string)$conf->aoe_profiler->trigger;
                    self::$_configuration->captureModelInfo = (bool)(string)$conf->aoe_profiler->captureModelInfo;
                    self::$_configuration->captureBacktraces = (bool)(string)$conf->aoe_profiler->captureBacktraces;
                    self::$_configuration->enableFilters = (bool)(string)$conf->aoe_profiler->enableFilters;
                    if (self::$_configuration->enableFilters) {
                        self::$_configuration->filters->sampling = (float)$conf->aoe_profiler->filters->sampling;
                        self::$_configuration->filters->timeThreshold = (int)$conf->aoe_profiler->filters->timeThreshold;
                        self::$_configuration->filters->memoryThreshold = (int)$conf->aoe_profiler->filters->memoryThreshold;
                        self::$_configuration->filters->requestUriWhiteList = (string)$conf->aoe_profiler->filters->requestUriWhiteList;
                        self::$_configuration->filters->requestUriBlackList = (string)$conf->aoe_profiler->filters->requestUriBlackList;
                    }
                }
            }
        }
        return self::$_configuration;
    }
public static function getConfiguration()
    {
        if (is_null(self::$_configuration)) {
            self::$_configuration = new stdClass();
            self::$_configuration->trigger = 'never';
            self::$_configuration->filters = new stdClass();

            $file = BP . DIRECTORY_SEPARATOR . 'var' . DIRECTORY_SEPARATOR . 'aoe_profiler.xml';
            if (is_file($file)) {
                $conf = simplexml_load_file($file);
                if ($conf !== false) {
                    self::$_configuration->trigger = (string)$conf->aoe_profiler->trigger;
                    self::$_configuration->captureModelInfo = (bool)(string)$conf->aoe_profiler->captureModelInfo;
                    self::$_configuration->captureBacktraces = (bool)(string)$conf->aoe_profiler->captureBacktraces;
                    self::$_configuration->enableFilters = (bool)(string)$conf->aoe_profiler->enableFilters;
                    if (self::$_configuration->enableFilters) {
                        self::$_configuration->filters->sampling = (float)$conf->aoe_profiler->filters->sampling;
                        self::$_configuration->filters->timeThreshold = (int)$conf->aoe_profiler->filters->timeThreshold;
                        self::$_configuration->filters->memoryThreshold = (int)$conf->aoe_profiler->filters->memoryThreshold;
                        self::$_configuration->filters->requestUriWhiteList = (string)$conf->aoe_profiler->filters->requestUriWhiteList;
                        self::$_configuration->filters->requestUriBlackList = (string)$conf->aoe_profiler->filters->requestUriBlackList;
                    }
                }
            }
        }
        return self::$_configuration;
    }
public static function getConfiguration ( ) { if ( is_null ( self :: $ _configuration ) ) { self :: $ _configuration = new stdClass ( ) ; self :: $ _configuration -> trigger = 'never' ; self :: $ _configuration -> filters = new stdClass ( ) ; $ file = BP . DIRECTORY_SEPARATOR . 'var' . DIRECTORY_SEPARATOR . 'aoe_profiler.xml' ; if ( is_file ( $ file ) ) { $ conf = simplexml_load_file ( $ file ) ; if ( $ conf !== false ) { self :: $ _configuration -> trigger = ( string ) $ conf -> aoe_profiler -> trigger ; self :: $ _configuration -> captureModelInfo = ( bool ) ( string ) $ conf -> aoe_profiler -> captureModelInfo ; self :: $ _configuration -> captureBacktraces = ( bool ) ( string ) $ conf -> aoe_profiler -> captureBacktraces ; self :: $ _configuration -> enableFilters = ( bool ) ( string ) $ conf -> aoe_profiler -> enableFilters ; if ( self :: $ _configuration -> enableFilters ) { self :: $ _configuration -> filters -> sampling = ( float ) $ conf -> aoe_profiler -> filters -> sampling ; self :: $ _configuration -> filters -> timeThreshold = ( int ) $ conf -> aoe_profiler -> filters -> timeThreshold ; self :: $ _configuration -> filters -> memoryThreshold = ( int ) $ conf -> aoe_profiler -> filters -> memoryThreshold ; self :: $ _configuration -> filters -> requestUriWhiteList = ( string ) $ conf -> aoe_profiler -> filters -> requestUriWhiteList ; self :: $ _configuration -> filters -> requestUriBlackList = ( string ) $ conf -> aoe_profiler -> filters -> requestUriBlackList ; } } } } return self :: $ _configuration ; }
Get configuration object

@return stdClass
Get configuration object