(
scriptId, startPosition, endPosition, duration, timestamp, functionName)
| 1055 | } |
| 1056 | |
| 1057 | processCompile( |
| 1058 | scriptId, startPosition, endPosition, duration, timestamp, functionName) { |
| 1059 | let script = this.lookupScript(scriptId); |
| 1060 | if (startPosition === 0) { |
| 1061 | script.compileTimestamp = startOf(timestamp, duration); |
| 1062 | script.compileDuration = duration; |
| 1063 | script.bytesTotal = endPosition; |
| 1064 | return script; |
| 1065 | } else { |
| 1066 | let funktion = script.getFunktionAtStartPosition(startPosition); |
| 1067 | if (funktion === undefined) { |
| 1068 | // This should not happen since any funktion has to be parsed first. |
| 1069 | console.error('processCompile funktion not found', ...arguments); |
| 1070 | return; |
| 1071 | } |
| 1072 | funktion.compileTimestamp = startOf(timestamp, duration); |
| 1073 | funktion.compileDuration = duration; |
| 1074 | return funktion; |
| 1075 | } |
| 1076 | } |
| 1077 | |
| 1078 | processCompileEval( |
| 1079 | scriptId, startPosition, endPosition, duration, timestamp, functionName) { |
no test coverage detected