MCPcopy Create free account
hub / github.com/nodejs/node / focusLogEntry

Method focusLogEntry

deps/v8/tools/system-analyzer/index.mjs:245–268  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

243 }
244
245 focusLogEntry(entry) {
246 switch (entry.constructor) {
247 case Script:
248 return this.focusSourcePosition(entry.sourcePositions[0]);
249 case SourcePosition:
250 return this.focusSourcePosition(entry);
251 case MapLogEntry:
252 return this.focusMapLogEntry(entry);
253 case IcLogEntry:
254 return this.focusIcLogEntry(entry);
255 case CodeLogEntry:
256 return this.focusCodeLogEntry(entry);
257 case DeoptLogEntry:
258 return this.focusDeoptLogEntry(entry);
259 case SharedLibLogEntry:
260 return this.focusDeoptLogEntry(entry);
261 case TickLogEntry:
262 return this.focusTickLogEntry(entry);
263 case TimerLogEntry:
264 return this.focusTimerLogEntry(entry);
265 default:
266 throw new Error(`Unknown selection type: ${entry.constructor?.name}`);
267 }
268 }
269
270 focusMapLogEntry(entry, focusSourcePosition = true) {
271 this._state.map = entry;

Callers 1

handleFocusLogEntryMethod · 0.95

Calls 7

focusSourcePositionMethod · 0.95
focusMapLogEntryMethod · 0.95
focusIcLogEntryMethod · 0.95
focusCodeLogEntryMethod · 0.95
focusDeoptLogEntryMethod · 0.95
focusTickLogEntryMethod · 0.95
focusTimerLogEntryMethod · 0.95

Tested by

no test coverage detected