'; $out[] = '' . $this->_renderCaption() . ''; $out[] = ''; foreach (array_keys($this->_columns) as $columnLabel) { $out[] = '' . $columnLabel . ''; } $out[] = ''; foreach ($this->_getTimerIds($stat) as $timerId) { $out[] = ''; foreach ($this->_columns as $column) { $out[] = '' . $this->_renderColumnValue( $stat->fetch($timerId, $column), $column ) . ''; } $out[] = ''; } $out[] = ''; $out[] = ''; $out = implode("\n", $out); echo $out; } /** * Render timer id column value * * @param string $timerId * @return string */ protected function _renderTimerId($timerId) { $nestingSep = preg_quote(Profiler::NESTING_SEPARATOR, '/'); return preg_replace('/.+?' . $nestingSep . '/', '·  ', $timerId); } }