(profileEntry)
| 521 | } |
| 522 | |
| 523 | getProfileEntryScript(profileEntry) { |
| 524 | if (!profileEntry) return undefined; |
| 525 | if (profileEntry.type === 'Builtin') return undefined; |
| 526 | const script = profileEntry.source?.script; |
| 527 | if (script !== undefined) return script; |
| 528 | let fileName; |
| 529 | if (profileEntry.type === 'SHARED_LIB') { |
| 530 | fileName = profileEntry.name; |
| 531 | } else { |
| 532 | // Slow path, try to get the script from the url: |
| 533 | const fnName = this.formatProfileEntry(profileEntry); |
| 534 | let parts = fnName.split(' '); |
| 535 | fileName = parts[parts.length - 1]; |
| 536 | } |
| 537 | return this.getScript(fileName); |
| 538 | } |
| 539 | |
| 540 | processMap(type, time, from, to, pc, line, column, reason, name) { |
| 541 | this._lastTimestamp = time; |
no test coverage detected