()
| 75 | return tmp.join('') |
| 76 | } |
| 77 | snapshot(): string { |
| 78 | if (this._snapshotCache !== null) { |
| 79 | return this._snapshotCache |
| 80 | } |
| 81 | const tmp: string[] = new Array<string>(this._events.len()) |
| 82 | for (let i = 0; i < this._events.len(); i++) { |
| 83 | tmp[i] = this._events.get(i).data |
| 84 | } |
| 85 | const ret = (this.prev ? this._snapshotFn(this.prev.snapshot() + tmp.join('')) : tmp.join('')) |
| 86 | return this._snapshotCache = ret |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | const DEFAULT_FRAME_EVENTS_STEP = 30 |