1

I have enabled the profiler in order to find out which events are triggered during order creation and processing.

php bin/magento dev:profiler:enable csvfile

But it is alway overwriting

var/log/profiler.csv

On each request.

How can I keep all profiler output across requests?

1

A temporary are to change this is to edit this line:

vendor/magento/framework/Profiler/Driver/Standard/Output/Csvfile.php:41

To

public function __construct(array $config = null)
{
    parent::__construct($config);
    # change this line, append uniqid()
    $this->_filePath = $this->_parseFilePath($config) . uniqid('', true);
    $this->_delimiter = isset($config['delimiter']) ? $config['delimiter'] : ',';
    $this->_enclosure = isset($config['enclosure']) ? $config['enclosure'] : '"';
}

Of course this is a core patch and only for temporary use.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.