profiler::print() leaves stream flags intact