google / pprof-nodejs

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

How to test the sourcemapper? #295

Open GeoffreyPlitt opened 2 weeks ago

GeoffreyPlitt commented 2 weeks ago

I'm using this to send CPU profiles for a transcoded Typescript code file which has inline sourcemaps in the generated JS. The resulting profiles do not have the right line numbers.

How do I test the sourcemapper? For example, I have an input JS file, and I'd like to see the result after sourcemap parsing completes. Is there a unit test, or CLI approach, to do so?