google / pprof-nodejs

pprof support for Node.js
Apache License 2.0
255 stars 26 forks source link

feat: Export createFromMapFiles SourceMapper utility #205

Open VladimirMilenko opened 2 years ago

VladimirMilenko commented 2 years ago

This functionality is needed when you know exact source map location and other source maps can fail. Our use case: We know exactly location of server.map.js file, however, some of client maps have references to WASM code and thus SourceMap is unable to parse them. Being unable to parse at least one of sourcemaps, error is thrown and sourcemaps are no longer available.

This functionality will allow you to pass path to specific sourcemap and avoid issue described above.

google-cla[bot] commented 2 years ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.