MCPcopy Create free account
hub / github.com/angular/angular / new

Method new

packages/compiler-cli/preprocessor/ng-analyze/src/perf/layer.rs:168–181  ·  view source on GitHub ↗
(ph: &'static str, cat: Cat, name: &'static str, tid: u32, ts_ns: u64)

Source from the content-addressed store, hash-verified

166
167impl 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

Calls 2

usFunction · 0.85
SelfInterface · 0.50

Tested by

no test coverage detected