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

Method _setupCppEntriesProvider

deps/v8/tools/system-analyzer/processor.mjs:331–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329 }
330
331 async _setupCppEntriesProvider() {
332 // Probe the local symbol server for the platform:
333 const url = new URL('http://localhost:8000/v8/info/platform')
334 let platform = {name: 'linux'};
335 try {
336 const response = await fetch(url, {timeout: 1});
337 if (response.status == 404) {
338 throw new Error(
339 `Local symbol server returned 404: ${await response.text()}`);
340 }
341 platform = await response.json();
342 } catch (e) {
343 console.warn(`Local symbol server is not running on ${url}`);
344 console.warn(e);
345 }
346 let CppEntriesProvider = RemoteLinuxCppEntriesProvider;
347 if (platform.name === 'darwin') {
348 CppEntriesProvider = RemoteMacOSCppEntriesProvider;
349 }
350 this._cppEntriesProvider = new CppEntriesProvider(
351 platform.nmExec, platform.objdumpExec, platform.targetRootFS,
352 platform.apkEmbeddedLibrary);
353 }
354
355 processCodeCreation(
356 type, kind, timestamp, start, size, nameAndPosition, maybe_func) {

Callers 1

processSharedLibraryMethod · 0.95

Calls 4

fetchFunction · 0.85
warnMethod · 0.80
textMethod · 0.65
jsonMethod · 0.65

Tested by

no test coverage detected