147,148c147,150
< std::ostream *os = simout.create(csprintf("profile.%s.dat", cpu->name()));
< profile->dump(tc, *os);
---
> OutputStream *os(
> simout.create(csprintf("profile.%s.dat", cpu->name())));
> profile->dump(tc, *os->stream());
> simout.close(os);