firefox-devtools / firefox-devtools/profiler

Experiment with showing the call node's source code line timings

Open
#3,833 0 comments 0 reactions 0 assignees View on GitHub
call tree
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 46m
Merged PRs (30d)
27

Description

At the moment, when you open the source view for a node in the call tree, the source view displays "global" timings next to each line of source code. This includes _all_ the time spent in the clicked function, not just the time for the clicked call node.

As an alternative, we could display the line timings just for the selected call node. So, as you change the selection in the call tree, the displayed timings in the source view would change.

It's hard for me to predict which mode would be more useful, and in what situations I would use which mode.
To experiment, we could expose both modes in the UI: `Timings: [x] Global [ ] Selected call node`

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

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.