Method
new
(ph: &'static str, cat: Cat, name: &'static str, tid: u32, ts_ns: u64)
Source from the content-addressed store, hash-verified
| 166 | |
| 167 | impl TraceEvent { |
| 168 | fn new(ph: &'static str, cat: Cat, name: &'static str, tid: u32, ts_ns: u64) -> Self { |
| 169 | Self { |
| 170 | name: Name::Span(name), |
| 171 | cat: Some(cat), |
| 172 | ph, |
| 173 | tid, |
| 174 | ts: us(ts_ns), |
| 175 | dur: None, |
| 176 | id: None, |
| 177 | id2: None, |
| 178 | bp: None, |
| 179 | args: None, |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | fn metadata(name: &'static str, tid: u32, value: String) -> Self { |
| 184 | let args = Args { |
Callers
nothing calls this directly
Tested by
no test coverage detected