public function startProfile($sqlStatement, $sqlVariables = null, $sqlBindTypes = null)
	{
		$this->handleFailed();
		$activeProfile = new Item();

		if( !$sqlVariables )  {
		    $sqlVariables = $this->_db->getSqlVariables();
		}

		$activeProfile->setSqlStatement($sqlStatement);
		$activeProfile->setRealSQL($this->getRealSql($sqlStatement,$sqlVariables,$sqlBindTypes));

		if ( is_array($sqlVariables) ) {
			$activeProfile->setSqlVariables($sqlVariables);
		}

		if (is_array($sqlBindTypes)) {
			$activeProfile->setSqlBindTypes($sqlBindTypes);
		}

		$activeProfile->setInitialTime(microtime(true));

		if ( method_exists($this, "beforeStartProfile")) {
			$this->beforeStartProfile($activeProfile);
		}

		$this->_activeProfile = $activeProfile;

		$this->_stoped = false;
		return $this;
	}
public function startProfile($sqlStatement, $sqlVariables = null, $sqlBindTypes = null)
	{
		$this->handleFailed();
		$activeProfile = new Item();

		if( !$sqlVariables )  {
		    $sqlVariables = $this->_db->getSqlVariables();
		}

		$activeProfile->setSqlStatement($sqlStatement);
		$activeProfile->setRealSQL($this->getRealSql($sqlStatement,$sqlVariables,$sqlBindTypes));

		if ( is_array($sqlVariables) ) {
			$activeProfile->setSqlVariables($sqlVariables);
		}

		if (is_array($sqlBindTypes)) {
			$activeProfile->setSqlBindTypes($sqlBindTypes);
		}

		$activeProfile->setInitialTime(microtime(true));

		if ( method_exists($this, "beforeStartProfile")) {
			$this->beforeStartProfile($activeProfile);
		}

		$this->_activeProfile = $activeProfile;

		$this->_stoped = false;
		return $this;
	}
public function startProfile ( $ sqlStatement , $ sqlVariables = null , $ sqlBindTypes = null ) { $ this -> handleFailed ( ) ; $ activeProfile = new Item ( ) ; if ( ! $ sqlVariables ) { $ sqlVariables = $ this -> _db -> getSqlVariables ( ) ; } $ activeProfile -> setSqlStatement ( $ sqlStatement ) ; $ activeProfile -> setRealSQL ( $ this -> getRealSql ( $ sqlStatement , $ sqlVariables , $ sqlBindTypes ) ) ; if ( is_array ( $ sqlVariables ) ) { $ activeProfile -> setSqlVariables ( $ sqlVariables ) ; } if ( is_array ( $ sqlBindTypes ) ) { $ activeProfile -> setSqlBindTypes ( $ sqlBindTypes ) ; } $ activeProfile -> setInitialTime ( microtime ( true ) ) ; if ( method_exists ( $ this , "beforeStartProfile" ) ) { $ this -> beforeStartProfile ( $ activeProfile ) ; } $ this -> _activeProfile = $ activeProfile ; $ this -> _stoped = false ; return $ this ; }
Starts the profile of a SQL sentence

@param string $sqlStatement
@param null|array   $sqlVariables
@param null|array   $sqlBindTypes

@return Profiler
Starts the profile of a SQL sentence