summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-11-19 16:28:02 -0800
committerJulian Blake Kongslie2022-11-19 16:28:02 -0800
commitca183c796fbbd5482d369d04e318076caf2c2435 (patch)
treedfbb70f309606fb1b1cf9c0d13ddd4057122640d
parentStarting to write a real memory subsystem for biggolf. (diff)
downloadnanosim-ca183c796fbbd5482d369d04e318076caf2c2435.tar.xz
Flush pt output after every event.
I feel like this is a bad decision that we have already learned about in quack, but whatever.
-rw-r--r--infra/pipetrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/pipetrace.h b/infra/pipetrace.h
index 656b9b9..670533b 100644
--- a/infra/pipetrace.h
+++ b/infra/pipetrace.h
@@ -31,7 +31,7 @@ namespace infra {
31 31
32 static void event(const transaction &t, const char *event, std::uint64_t time, const std::string &data) { 32 static void event(const transaction &t, const char *event, std::uint64_t time, const std::string &data) {
33 if (ptfile) 33 if (ptfile)
34 *ptfile << fmt::format("@{} {} {} {}\n", time, t.record, event, data); 34 *ptfile << fmt::format("@{} {} {} {}\n", time, t.record, event, data) << std::flush;
35 } 35 }
36 }; 36 };
37} 37}