You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to use pprof-it to profile the TypeScript language server (TS v5). I get the error below which I believe means it needs to be built for the Electron runtime env:
Error: No native build was found for runtime=electron abi=115 platform=linuxglibc arch=x64
at load.path (/home/coder/.local/lib/node_modules/pprof-it/node_modules/node-gyp-build/index.js:59:9)
at load (/home/coder/.local/lib/node_modules/pprof-it/node_modules/node-gyp-build/index.js:19:30)
at Object.<anonymous> (/home/coder/.local/lib/node_modules/pprof-it/node_modules/@datadog/pprof/out/src/heap-profiler-bindings.js:44:18)
at Module._compile (node:internal/modules/cjs/loader:1529:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)
at Module.require (node:internal/modules/cjs/loader:1298:19)
at require (node:internal/modules/helpers:182:18)
at Object.<anonymous> (/home/coder/.local/lib/node_modules/pprof-it/node_modules/@datadog/pprof/out/src/heap-profiler.js:19:34)
How hard would it be to add this? any suggested workarounds?
The text was updated successfully, but these errors were encountered:
I can't really do anything about it since it's Datadog's package I depend on (Google's is basically unmaintained), however you can technically patch the package to just swap out "electron" for "node" and it should "just work", at least it has worked for me in the past when I was attempting to profile Electron-based code.
I'm attempting to use
pprof-it
to profile the TypeScript language server (TS v5). I get the error below which I believe means it needs to be built for the Electron runtime env:How hard would it be to add this? any suggested workarounds?
The text was updated successfully, but these errors were encountered: