library/Rediska/Profiler.php
public function stop()
    {
        $hasUnstopped = false;
        foreach(array_reverse($this->_profiles) as $profile) {
            if (!$profile->hasStopped()) {
                $hasUnstopped = true;
                break;
            }
        }
        if ($hasUnstopped) {
            $profile->stop();
        } else {
            throw new Rediska_Profiler_Exception('You need start profiler before stop it');
        }

        return $profile;
    }
public function stop()
    {
        $hasUnstopped = false;
        foreach(array_reverse($this->_profiles) as $profile) {
            if (!$profile->hasStopped()) {
                $hasUnstopped = true;
                break;
            }
        }
        if ($hasUnstopped) {
            $profile->stop();
        } else {
            throw new Rediska_Profiler_Exception('You need start profiler before stop it');
        }

        return $profile;
    }
Stop profile

@return Rediska_Profiler_Profile