Skip to content

Only set fillStyle once in drawSamples.#4816

Merged
mstange merged 1 commit into
firefox-devtools:mainfrom
mstange:no-repeated-set-color
Nov 27, 2023
Merged

Only set fillStyle once in drawSamples.#4816
mstange merged 1 commit into
firefox-devtools:mainfrom
mstange:no-repeated-set-color

Conversation

@mstange

@mstange mstange commented Nov 26, 2023

Copy link
Copy Markdown
Contributor

Move the fillStyle setting outside of a loop in the SampleGraph implementation. This was likely moved by mistake in f8631ae .

And don't set the fillStyle at all if there's nothing to draw with this color.

Move the fillStyle setting outside of a loop in the SampleGraph implementation.
This was likely moved by mistake in f8631ae .

And don't set the fillStyle at all if there's nothing to draw with this color.
@mstange mstange requested a review from canova November 26, 2023 01:21
@mstange mstange self-assigned this Nov 26, 2023
@codecov

codecov Bot commented Nov 26, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (efbe020) 88.27% compared to head (0cee302) 88.27%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4816   +/-   ##
=======================================
  Coverage   88.27%   88.27%           
=======================================
  Files         301      301           
  Lines       26911    26915    +4     
  Branches     7284     7286    +2     
=======================================
+ Hits        23755    23759    +4     
  Misses       2938     2938           
  Partials      218      218           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@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.

Oops, thanks for the fix! :)

@mstange mstange merged commit 22e80e7 into firefox-devtools:main Nov 27, 2023
@julienw julienw mentioned this pull request Dec 5, 2023
@mstange mstange added the perf Issues where the profiler itself is slow. label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf Issues where the profiler itself is slow.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants