MCPcopy Index your code
hub / github.com/angular/angular / create

Method create

packages/benchpress/test/trace_event_factory.ts:17–29  ·  view source on GitHub ↗
(ph: any, name: string, time: number, args: any = null)

Source from the content-addressed store, hash-verified

15 ) {}
16
17 create(ph: any, name: string, time: number, args: any = null) {
18 const res: PerfLogEvent = {
19 'name': name,
20 'cat': this._cat,
21 'ph': ph,
22 'ts': time,
23 'pid': this._pid,
24 };
25 if (args != null) {
26 res['args'] = args;
27 }
28 return res;
29 }
30
31 markStart(name: string, time: number) {
32 return this.create('B', name, time);

Callers 6

markStartMethod · 0.95
markEndMethod · 0.95
startMethod · 0.95
endMethod · 0.95
instantMethod · 0.95
completeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected