public function getProfiler()
    {
        if (null === $this->profiler) {
            $class = $this->profilerClass;
            $profiler = new $class();
            if (!empty($this->profilerConfiguration)) {
                $profiler->setConfiguration($this->profilerConfiguration);
            }
            $this->profiler = $profiler;
        }

        return $this->profiler;
    }
public function getProfiler()
    {
        if (null === $this->profiler) {
            $class = $this->profilerClass;
            $profiler = new $class();
            if (!empty($this->profilerConfiguration)) {
                $profiler->setConfiguration($this->profilerConfiguration);
            }
            $this->profiler = $profiler;
        }

        return $this->profiler;
    }
public function getProfiler ( ) { if ( null === $ this -> profiler ) { $ class = $ this -> profilerClass ; $ profiler = new $ class ( ) ; if ( ! empty ( $ this -> profilerConfiguration ) ) { $ profiler -> setConfiguration ( $ this -> profilerConfiguration ) ; } $ this -> profiler = $ profiler ; } return $ this -> profiler ; }
Get a profiler instance.

If no profiler is set, create one using profilerClass and profilerConfiguration.

@return \Propel\Runtime\Util\Profiler
Get a profiler instance .