(file, result)
| 116 | } |
| 117 | |
| 118 | processRawText(file, result) { |
| 119 | let return_data; |
| 120 | if (result.includes('V8.GC_Objects_Stats')) { |
| 121 | return_data = this.createModelFromChromeTraceFile(result); |
| 122 | } else { |
| 123 | let contents = result.split('\n'); |
| 124 | return_data = this.createModelFromV8TraceFile(contents); |
| 125 | } |
| 126 | this.extendAndSanitizeModel(return_data); |
| 127 | this.updateLabel('Finished loading \'' + file.name + '\'.'); |
| 128 | this.dispatchEvent(new CustomEvent( |
| 129 | 'change', {bubbles: true, composed: true, detail: return_data})); |
| 130 | } |
| 131 | |
| 132 | createOrUpdateEntryIfNeeded(data, entry) { |
| 133 | console.assert(entry.isolate, 'entry should have an isolate'); |
no test coverage detected