diff options
| author | Julian Blake Kongslie | 2022-11-19 16:28:02 -0800 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-11-19 16:28:02 -0800 |
| commit | ca183c796fbbd5482d369d04e318076caf2c2435 (patch) | |
| tree | dfbb70f309606fb1b1cf9c0d13ddd4057122640d | |
| parent | Starting to write a real memory subsystem for biggolf. (diff) | |
| download | nanosim-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.
Diffstat (limited to '')
| -rw-r--r-- | infra/pipetrace.h | 2 |
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 | } |
