Closed Bug 1724968 Opened 3 years ago Closed 3 years ago

Profile counters show the last value if there hasn't been samples for a long time.

Categories

(Core :: Graphics: WebRender, task, P3)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This is confusing. For example if no glyphs have been rasterized fro multiple seconds, we are still showing the average and max number of rasterized glyphs from the last averaging window when glyphs were rasterized. That makes it look like we are constantly rasterizing glyphs whereas we are not.

If there was no sample the counter should instead just show 0.

Before this patch the embedded profiler would show the last avg/max values for a profile counter if it hasn't had samples for a long time. After this patch the counter shows 0 if there was no sample.

For example when no glyphs are rasterized there are no 'Rasterized glyphs' samples. If no glyphs are rasterized for multiple seconds then we are currently still showing the average and max number of rasterized glyphs from seconds ago which makes it look like we are constantly rasterizing glyphs. With this patch the counter goes back to zero after half a second of not rasterizing glyphs.

Pushed by nsilva@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e94c5caeba12
Make WR profiler less confusing when there was no sample for a while. r=gfx-reviewers,kvark
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: