MCPcopy Index your code
hub / github.com/nodejs/node / processCodeCreation

Method processCodeCreation

deps/v8/tools/system-analyzer/processor.mjs:355–376  ·  view source on GitHub ↗
(
      type, kind, timestamp, start, size, nameAndPosition, maybe_func)

Source from the content-addressed store, hash-verified

353 }
354
355 processCodeCreation(
356 type, kind, timestamp, start, size, nameAndPosition, maybe_func) {
357 this._lastTimestamp = timestamp;
358 let profilerEntry;
359 let stateName = '';
360 if (type != 'RegExp' && maybe_func.length) {
361 const sfiAddr = this.parseAddress(maybe_func[0]);
362 stateName = maybe_func[1] ?? '';
363 const state = Profile.parseState(maybe_func[1]);
364 profilerEntry = this._profile.addFuncCode(
365 type, nameAndPosition, timestamp, start, size, sfiAddr, state);
366 } else {
367 profilerEntry =
368 this._profile.addCode(type, nameAndPosition, timestamp, start, size);
369 }
370 const name = nameAndPosition.slice(0, nameAndPosition.indexOf(' '));
371 this._lastCodeLogEntry = new CodeLogEntry(
372 type + stateName, timestamp,
373 Profile.getKindFromState(Profile.parseState(stateName)), kind, name,
374 profilerEntry);
375 this._codeTimeline.push(this._lastCodeLogEntry);
376 }
377
378 processCodeDeopt(
379 timestamp, codeSize, instructionStart, inliningId, scriptOffset,

Callers

nothing calls this directly

Calls 7

parseStateMethod · 0.80
addFuncCodeMethod · 0.80
getKindFromStateMethod · 0.80
sliceMethod · 0.65
addCodeMethod · 0.45
indexOfMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected