Closed Bug 837898 Opened 11 years ago Closed 1 year ago

Provide a way for theme developers to know about gradient cache hits/misses

Categories

(Core :: Graphics, enhancement)

enhancement

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: MattN, Unassigned)

References

Details

(Whiteboard: [Australis:M-])

Attachments

(1 file)

It would be useful to know about gradient cache hits and misses so that theme developers can optimize for hit rate. 

I believe this is only possible with a custom patch or logging from a debugger. Perhaps such a mechanism can be in-tree for debug builds? Perhaps a more generally applicable pref to output various gfx performance stats would be useful?
As a temporary solution, use this patch.
- Set the pref toolkit.layers.gradientPatternsCache.debug = true.
- Restart the browser with "-console".
- Gradient patterns cache hits will print a "+", misses will print a "-".
Whiteboard: [Australis:M-]
Whiteboard: [Australis:M-] → [Australis:M-][Australis:P?]
Whiteboard: [Australis:M-][Australis:P?] → [Australis:M-][Australis:P5]
Whiteboard: [Australis:M-][Australis:P5] → [Australis:M-]
Maybe this should be realized with the profiler? e.g. add markers on cache misses?
Flags: needinfo?(bgirard)
I'm planning to add a way to get timestamped logging into profiler for this sort of data.

Feel free to use markers for now if you want the data.
Flags: needinfo?(bgirard)
Severity: normal → S3
  • Gradients are super fast now
  • The Firefox profiler can provide this information now
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: