Method
create
(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); |
Tested by
no test coverage detected