Skip to content

Add a way to apply source maps to profiler-cli from disk #6196

Description

@canova

This is similar to #6195, but for the profiler-cli instead.

It would be great if we can also apply source maps for profiles after by pointing out to a source map file on disk. And the source matching should act exactly like #6195, so we can share the 90% of the code by using the same redux actions and selectors. Only thing that we need is proper cli commands and subcommands to list and apply source maps.

There are two things to keep in mind:

  1. We do the source map resolution it in a Worker on the web UI, which is not available in nodejs. We should make this runtime "plugable". I remember keeping this in mind while working in source maps initially. But might need some small adjustments.
  2. source-map package uses a wasm file to do the source map resolution. We need to include it in the npm package while bundling.

Since most of the code from #6195 will be reused in this work, this is blocked by #6195.

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

Labels

cliIssues related to the profiler CLIsource mapsRelated to the source maps feature

Fields

Priority

None yet

Severity

None yet

Jira

None yet

Estimate

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions