(chunk)
| 221 | file: file, |
| 222 | |
| 223 | processChunk(chunk) { |
| 224 | if (failed) return false; |
| 225 | try { |
| 226 | oboe_stream.emit('data', chunk); |
| 227 | return true; |
| 228 | } catch (e) { |
| 229 | console.error('Unable to parse chrome trace file.', e); |
| 230 | failed = true; |
| 231 | return false; |
| 232 | } |
| 233 | }, |
| 234 | |
| 235 | endProcessing() { |
| 236 | if (failed) return null; |