pcm
pcm copied to clipboard
pcm-memory:mainloop: Always flush cout
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]
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?
please make the flushing optional
has been implemented in the latest release