Could you add value for "enabled" attribute which allow disable ResultCollector (and more ?) with non gui mode automaticaly ? By example : - enabled = true (already enable) - enabled = false (already disable) - enabled = gui (only gui mode)
Not sure there's any point. The GUI part of listeners is disabled anyway in non-GUI mode. And listeners don't do anything in non-GUI mode if they don't have a file. What is the purpose of this request?
Looking at how it works, sampleOccurred is called for each sampler, even if out is null, so it is a bit of useless processing. With this change maybe we could remove listener from listeners list if it is only enabled in GUI mode. So we would gain some useless processing.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3108