Bug 54885

Summary: Add a Status to listeners to allow disabling them automatically in non gui mode
Product: JMeter Reporter: Lucas Pouzac <lucas.pouzac.pro>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: enhancement CC: p.mouawad
Priority: P2    
Version: 2.9   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Lucas Pouzac 2013-04-24 12:11:51 UTC
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)
Comment 1 Sebb 2013-06-16 14:14:35 UTC
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?
Comment 2 Philippe Mouawad 2013-08-25 13:05:22 UTC
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.