pcm icon indicating copy to clipboard operation
pcm copied to clipboard

pcm-memory:mainloop: Always flush cout

Open bsdimp opened this issue 2 years ago • 1 comments

Flushing cout in cvs mode is also useful when the output is a pipeline using the values to display in real time. As such, always flush the cout buffers at the start of the main loop.

Signed-off-by: Warner Losh [email protected]

bsdimp avatar Feb 28 '22 20:02 bsdimp

thanks for the patch, this is useful. But to reduce the overhead for non-interactive mode when sampling with a higher frequency the flushing should be avoided in csv mode. The flushing should be optional like in pcm-iio: https://github.com/opcm/pcm/blob/58039287e0ee63edcaa60bdbf837d536e4e417da/src/pcm-raw.cpp#L74 Could you please implement it similarly?

opcm avatar Mar 05 '22 15:03 opcm

please make the flushing optional

has been implemented in the latest release

rdementi avatar Oct 19 '22 14:10 rdementi