matsim-vsp / parallel_qsim_rust

Parallel and distributed implementation of the Qsim in Rust
8 stars 0 forks source link

Work out Tracing and timing #118

Closed Janekdererste closed 4 months ago

Janekdererste commented 7 months ago

We want timing information on our application to create nice images. This requires log files in CSV format, as reading in JSON in R is pretty slow, once the log files reach a certain size. It seems like CSV files are parsed much quicker. This is not supported by the tracing crate out of the box, I think.

I would prefer the tracing crate, over a custom solution, since we are using this dependency anyway. We can time methods using the #[instrument] directive and the framework takes care of most of the other stuff.

After tinkering around with the tracing crate, I think we should go for the following solution:

paulheinr commented 4 months ago

@Janekdererste did it 🚀