Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit d5df7da

Browse files
committed
flush stdout after each write
so itmdump can be used for real time logging, plotting, etc.
1 parent 635589c commit d5df7da

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bin/itmdump.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ fn run() -> Result<()> {
105105
match p.kind() {
106106
&packet::Kind::Instrumentation(ref i) if i.port() == port => {
107107
stdout.write_all(&i.payload())?;
108+
stdout.flush()?;
108109
}
109110
_ => (),
110111
}

0 commit comments

Comments
 (0)