firefox-devtools / firefox-devtools/profiler

Provide an easy way of displaying prettified JavaScript source code for a given function

Open
#1,298 5 comments 0 reactions 0 assignees View on GitHub
quantum flow
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 46m
Merged PRs (30d)
27

Description

This is part of #820, but JS-specific.

For JS slowness, the stacks in a profile are usually not enough information to determine whether or why something is a problem. When JS engine developers identify a potentially problematic JS function, they usually need to know what the JS function is doing, and they go through this manual process:

* Open the script URL for the function, copy the source code into an editor
* Identify the right function based on line and column number
* Copy and paste this JS function into https://beautifier.io/
* Read the beautified source

It would be really nice if we could automate this process, even before we have source map support.

┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-69)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.