Profiler/Xhprof.php
public function stopProfiling()
    {
        if (!$this->profiling) {
            return false;
        }
        $this->profiling = false;
        $xhprof_data = xhprof_disable();
        if (is_array($xhprof_data)) {
            $this->parser->parse($xhprof_data);
        }
        foreach ($this->probes as $probe) {
            $name = $probe->getName();
            if ($probe->isTimingProbe()) {
                $this->timers[$name] = $probe->getTime();
            }
            if ($probe->isCallsProbe()) {
                $this->counters[$name] = $probe->getCount();
            }
        }

        return true;
    }
public function stopProfiling()
    {
        if (!$this->profiling) {
            return false;
        }
        $this->profiling = false;
        $xhprof_data = xhprof_disable();
        if (is_array($xhprof_data)) {
            $this->parser->parse($xhprof_data);
        }
        foreach ($this->probes as $probe) {
            $name = $probe->getName();
            if ($probe->isTimingProbe()) {
                $this->timers[$name] = $probe->getTime();
            }
            if ($probe->isCallsProbe()) {
                $this->counters[$name] = $probe->getCount();
            }
        }

        return true;
    }
Stops the profiling & parses data
@return boolean $enabled