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

Method loadVMSymbolsMacOS

deps/v8/tools/system-analyzer/lws-middleware.js:79–89  ·  view source on GitHub ↗
(query, result)

Source from the content-addressed store, hash-verified

77 }
78
79 async loadVMSymbolsMacOS(query, result) {
80 let libName =
81 (query.targetRootFS ? query.targetRootFS : '') + query.libName;
82 try {
83 // Fast skip files that don't exist.
84 if (libName.indexOf('/') === -1 || !fs.existsSync(libName)) return;
85 result.symbols = [await sh(this.nmExec, '--demangle', '-n', libName), ''];
86 } catch (e) {
87 result.error = e.message;
88 }
89 }
90
91 async loadVMSymbolsLinux(query, result) {
92 let libName = query.libName;

Callers 1

parseVMSymbolsMethod · 0.95

Calls 3

shFunction · 0.70
indexOfMethod · 0.45
existsSyncMethod · 0.45

Tested by

no test coverage detected