Debian Codegraph @

README.md

raw symbols SCIP
1 Traces to Chrome's [trace_event format](https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview)
2
3 ## Example ##
4
5 Cargo.toml:
6 ```toml
7 rs_tracing = { version = "1.0", features = ["rs_tracing"] }
8 ```
9 main.rs:
10 ```Rust
11 fn main() {
12 open_trace_file!(".").unwrap();
13 {
14 trace_scoped!("complete","custom data":"main");
15 trace_expr!("trace_expr", println!("trace_expr"));
16 trace_begin!("duration");
17 println!("trace_duration");
18 trace_end!("duration");
19 }
20 close_trace_file!();
21 }
22 ```
23 also possible to add custom data to all the macros formated like
24 the [serde_json::json!](https://docs.serde.rs/serde_json/macro.json.html) macro e.g.
25
26 trace_scoped!("complete","custom":230,"more":"data");