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

Method processSharedLibrary

deps/v8/tools/system-analyzer/processor.mjs:313–329  ·  view source on GitHub ↗
(name, startAddr, endAddr, aslrSlide)

Source from the content-addressed store, hash-verified

311 }
312
313 async processSharedLibrary(name, startAddr, endAddr, aslrSlide) {
314 const entry = this._profile.addLibrary(name, startAddr, endAddr);
315 entry.logEntry = new SharedLibLogEntry(entry);
316 // Many events rely on having a script around, creating fake entries for
317 // shared libraries.
318 this._profile.addScriptSource(-1, name, '');
319
320 if (this._cppEntriesProvider == undefined) {
321 await this._setupCppEntriesProvider();
322 }
323
324 await this._cppEntriesProvider.parseVmSymbols(
325 name, startAddr, endAddr, aslrSlide, (fName, fStart, fEnd) => {
326 const entry = this._profile.addStaticCode(fName, fStart, fEnd);
327 entry.logEntry = new CPPCodeLogEntry(entry);
328 });
329 }
330
331 async _setupCppEntriesProvider() {
332 // Probe the local symbol server for the platform:

Callers

nothing calls this directly

Calls 5

addScriptSourceMethod · 0.80
addLibraryMethod · 0.45
parseVmSymbolsMethod · 0.45
addStaticCodeMethod · 0.45

Tested by

no test coverage detected