Merge pull request #200 from urbit/pq/tracing

don't fsync on every nock event while tracing
This commit is contained in:
Matthew LeVan 2024-01-16 14:18:19 -05:00 committed by GitHub
commit 6eba257803
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,7 +91,6 @@ pub fn write_metadata(info: &mut TraceInfo) -> Result<(), Error> {
.write(&mut info.file)?;
info.file.write_all(",\n".as_bytes())?;
info.file.sync_data()?;
Ok(())
}
@ -180,7 +179,6 @@ pub unsafe fn write_nock_trace(
trace_stack = (*trace_stack).next;
}
info.file.sync_data()?;
Ok(())
}