(label: string, detail?: string)
| 52 | } |
| 53 | |
| 54 | log(label: string, detail?: string): void { |
| 55 | if (!this._enabled) return; |
| 56 | const now = performance.now(); |
| 57 | const entry: DebugEntry = { |
| 58 | ts: now, |
| 59 | elapsed: now - this.startTime, |
| 60 | label, |
| 61 | detail, |
| 62 | }; |
| 63 | this.entries.push(entry); |
| 64 | if (this.entries.length > this.maxEntries) { |
| 65 | this.entries.shift(); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | logEvent(event: ConcurrentPipelineEvent): void { |
| 70 | if (!this._enabled) return; |