12 class OutputBamboo extends \Magento\Framework\Profiler\Driver\Standard\Output\Csvfile
27 $this->_metrics = isset(
$config[
'metrics']) ? (array)
$config[
'metrics'] : [];
39 \
Magento\Framework\Profiler\Driver\Standard\Stat $stat,
41 $fetchKey = \
Magento\Framework\Profiler\Driver\Standard\Stat::AVG
44 $nestingSep = preg_quote(\
Magento\Framework\Profiler::NESTING_SEPARATOR,
'/');
45 array_map(
'preg_quote', $timerNames, [
'/']);
46 $pattern =
'/(?<=' . $nestingSep .
'|^)(?:' . implode(
'|', $timerNames) .
')$/';
51 if (preg_match(
$pattern, $timerId)) {
52 $result += $stat->fetch($timerId, $fetchKey);
72 foreach ($this->_metrics as $metricName => $timerNames) {
75 fputcsv($fileHandle, array_keys(
$result), $this->_delimiter, $this->_enclosure);
76 fputcsv($fileHandle, array_values(
$result), $this->_delimiter, $this->_enclosure);
__construct(array $config=null)
_aggregateTimerValues(\Magento\Framework\Profiler\Driver\Standard\Stat $stat, array $timerNames, $fetchKey=\Magento\Framework\Profiler\Driver\Standard\Stat::AVG)
_writeFileContent($fileHandle, \Magento\Framework\Profiler\Driver\Standard\Stat $stat)