We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8883f8a commit 484323fCopy full SHA for 484323f
runtime_tracing/src/tracer.rs
@@ -4,6 +4,7 @@ use std::collections::HashMap;
4
use std::env;
5
use std::error::Error;
6
use std::fs;
7
+use std::io::stdout;
8
use std::path::{Path, PathBuf};
9
10
use crate::types::{
@@ -305,7 +306,10 @@ impl Tracer {
305
306
let json = serde_json::to_string(&self.events)?;
307
fs::write(path, json)?;
308
}
- TraceEventsFileFormat::Binary => todo!(),
309
+ TraceEventsFileFormat::Binary => {
310
+ let file = fs::File::create(path)?;
311
+ crate::capnptrace::write_trace(&self.events, file)?;
312
+ }
313
314
Ok(())
315
0 commit comments