firefox-devtools / firefox-devtools/profiler

Check the counter track activity to decide if it should be visible

Open
#5,967 0 comments 0 reactions 1 assignee Claimed by @fatadel View on GitHub
profile data
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 46m
Merged PRs (30d)
27

Description

There is [_isLocalTrackVisible](https://github.com/firefox-devtools/profiler/blob/main/src/profile-logic/tracks.ts#L1767) method where we decide if a local track should be visible. We want to add an activity check there for the counter tracks to base this decision on. As @canova [wrote](https://github.com/firefox-devtools/profiler/pull/5944#discussion_r3124709708):

> I think this is something we might want to do for all the counters. Or have another counter display option like `showOnlyWhenActive: true`.

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

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.