/** * Start output buffering * * @param string $filename Target file to save CSV data * @param string|null $filter Pattern to filter timers by their identifiers (SQL LIKE syntax) * @param string $delimiter Delimiter for CSV format * @param string $enclosure Enclosure for CSV format */ public function __construct($filename, $filter = null, $delimiter = ',', $enclosure = '"') { parent::__construct($filter); $this->_filename = $filename; $this->_delimiter = $delimiter; $this->_enclosure = $enclosure; }
/** * Start output buffering * * @param string|null $filter Pattern to filter timers by their identifiers (SQL LIKE syntax) */ public function __construct($filter = null) { parent::__construct($filter); ob_start(); }
/** * Reset threshold values for all profiler fetch keys * * @param Magento_Profiler_OutputAbstract $output */ protected function _resetThresholds(Magento_Profiler_OutputAbstract $output) { $fetchKeys = array(Magento_Profiler::FETCH_TIME, Magento_Profiler::FETCH_AVG, Magento_Profiler::FETCH_COUNT, Magento_Profiler::FETCH_EMALLOC, Magento_Profiler::FETCH_REALMEM); foreach ($fetchKeys as $fetchKey) { $output->setThreshold($fetchKey, null); } }