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

Method parseVMSymbols

deps/v8/tools/system-analyzer/lws-middleware.js:56–77  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

54 }
55
56 async parseVMSymbols(ctx) {
57 const query = ctx.request.query;
58 const result = {
59 libName: query.libName,
60 symbols: ['', ''],
61 error: undefined,
62 fileOffsetMinusVma: 0,
63 };
64 switch (query.platform) {
65 case 'macos':
66 await this.loadVMSymbolsMacOS(query, result);
67 break;
68 case 'linux':
69 await this.loadVMSymbolsLinux(query, result);
70 break;
71 default:
72 ctx.response.status = '500';
73 return;
74 }
75 ctx.response.type = 'json';
76 ctx.response.body = JSON.stringify(result);
77 }
78
79 async loadVMSymbolsMacOS(query, result) {
80 let libName =

Callers 1

middlewareMethod · 0.95

Calls 2

loadVMSymbolsMacOSMethod · 0.95
loadVMSymbolsLinuxMethod · 0.95

Tested by

no test coverage detected