Skip to content

Reduce activity threshold for non-idle threads.#4191

Merged
mstange merged 1 commit into
firefox-devtools:mainfrom
mstange:lower-activity-threshold
Aug 19, 2022
Merged

Reduce activity threshold for non-idle threads.#4191
mstange merged 1 commit into
firefox-devtools:mainfrom
mstange:lower-activity-threshold

Conversation

@mstange

@mstange mstange commented Aug 18, 2022

Copy link
Copy Markdown
Contributor

Current production
Deploy preview

Fixes #4190.

Now we will display more minimally-active threads by default.
For the example profile in #4190, a threshold of 8% would have been
sufficient to show the thread. I decided to go down to 5%, but not for
any particular reason, just because it was a rounder number. Maybe we'll
find out that 8% would have been better after all.

Reducing this threshold won't overload the thread list, because we still
have the limit of 15 threads.

@mstange mstange requested a review from canova August 18, 2022 12:54
@mstange mstange self-assigned this Aug 18, 2022
@codecov

codecov Bot commented Aug 18, 2022

Copy link
Copy Markdown

Codecov Report

Merging #4191 (3368a19) into main (55284c1) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #4191   +/-   ##
=======================================
  Coverage   88.42%   88.42%           
=======================================
  Files         280      280           
  Lines       24561    24561           
  Branches     6555     6555           
=======================================
  Hits        21719    21719           
  Misses       2640     2640           
  Partials      202      202           
Impacted Files Coverage Δ
src/profile-logic/tracks.js 83.45% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mstange mstange force-pushed the lower-activity-threshold branch from c1eb89d to 6a8a051 Compare August 18, 2022 13:15

@canova canova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was worried that we would show a lot of threads but thanks for reminding me that we limit to 15 threads anyways. So this will not affect the other profiles that much. I've checked some of them and don't see a huge difference. Looks good to me!

Fixes firefox-devtools#4190.

Now we will display more minimally-active threads by default.
For the example profile in firefox-devtools#4190, a threshold of 8% would have been
sufficient to show the thread. I decided to go down to 5%, but not for
any particular reason, just because it was a rounder number. Maybe we'll
find out that 8% would have been better after all.

Reducing this threshold won't overload the thread list, because we still
have the limit of 15 threads.
@mstange mstange force-pushed the lower-activity-threshold branch from 6a8a051 to 3368a19 Compare August 19, 2022 11:37
@mstange mstange merged commit a20e9c0 into firefox-devtools:main Aug 19, 2022
@canova canova mentioned this pull request Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some relevant threads are hidden in this profile

2 participants