It depends on the listener. If it writes the trace info to a file then, yes, flushing is pretty expensive. Relatively, it still takes well less than the blink of an eye. Whether that *really* matters to your program is something you have to find out by yourself.
– Hans PassantMay 26 '16 at 09:48