Closed
Bug 796005
Opened 12 years ago
Closed 12 years ago
Add telemetry for XUL cache being disabled
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: mccr8, Assigned: bindarel)
References
Details
Attachments
(1 file, 4 obsolete files)
(deleted),
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Some addons (like extension developer addons) set this pref ( nglayout.debug.disable_xul_cache ) without the user being aware of it, and it can cause severed performance degradation. It might be good to track how widespread of a problem this is.
I'm not sure what exactly we can do about this, aside from maybe alerting the user or something.
Assignee | ||
Comment 1•12 years ago
|
||
Hi, would this telemetry be still useful?
Comment 2•12 years ago
|
||
I think so. It would be good to know how often users suffer from significantly slower UI because
the xul cache is disabled-
Assignee | ||
Comment 3•12 years ago
|
||
So, the telemetry should only measure the xul_cache switches to disabled?
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #734717 -
Flags: review?(jag-mozilla)
Reporter | ||
Comment 5•12 years ago
|
||
Comment on attachment 734717 [details] [diff] [review]
Patch v1
Did you mean for Olli to review?
Attachment #734717 -
Flags: review?(jag-mozilla) → review?(bugs)
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Andrew McCreight [:mccr8] from comment #5)
> Comment on attachment 734717 [details] [diff] [review]
> Patch v1
>
> Did you mean for Olli to review?
Sorry, my bad, fixing now.
Reporter | ||
Comment 7•12 years ago
|
||
Its okay, I already switched it over to asking him for review instead. :)
Assignee | ||
Comment 8•12 years ago
|
||
Thanks a lot.
Comment 9•12 years ago
|
||
Comment on attachment 734717 [details] [diff] [review]
Patch v1
+ if ( gDisableXULCache )
+ Telemetry::Accumulate(Telemetry::XUL_CACHE_DISABLED, true);
should be
if (gDisableXULCache) {
Telemetry::Accumulate(Telemetry::XUL_CACHE_DISABLED, true);
}
But the kind for XUL_CACHE_DISABLED should be "flag", not "boolean" I believe.
Attachment #734717 -
Flags: review?(bugs) → review-
Assignee | ||
Comment 10•12 years ago
|
||
Attachment #734717 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #735323 -
Flags: review?(bugs)
Assignee | ||
Comment 11•12 years ago
|
||
Attachment #735323 -
Attachment is obsolete: true
Attachment #735323 -
Flags: review?(bugs)
Attachment #735787 -
Flags: review?(bugs)
Comment 12•12 years ago
|
||
Comment on attachment 735323 [details] [diff] [review]
patch v2
> // Flush the cache, regardless
> nsXULPrototypeCache* cache = nsXULPrototypeCache::GetInstance();
> if (cache)
> cache->Flush();
>+ if (gDisableXULCache)
>+ Telemetry::Accumulate(Telemetry::XUL_CACHE_DISABLED, true);
please add a new line before if
But looks like we update gDisableXULCache variable in two places, so you need to call Telemetry in both places, or better would be to add a helper method
which updates gDisableXULCache and calls telemetry
>+ "XUL_CACHE_DISABLED": {
>+ "kind": "flag",
>+ "description": "Xul cache was disabled"
It is XUL, not Xul
Attachment #735323 -
Attachment is obsolete: false
Updated•12 years ago
|
Attachment #735787 -
Flags: review?(bugs) → review-
Assignee | ||
Comment 13•12 years ago
|
||
Olli Pettay:
Thanks for review, I will implement it soon. It's ok if I make the method member of the nsXULPrototypeCache class?
Assignee | ||
Comment 14•12 years ago
|
||
Attachment #735942 -
Flags: review?(bugs)
Comment 15•12 years ago
|
||
Comment on attachment 735942 [details] [diff] [review]
Patch v3
Make UpdategDisableXULCache return void, so you don't have to have return 0.
Attachment #735942 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 16•12 years ago
|
||
Attachment #736786 -
Flags: review?(bugs)
Comment 17•12 years ago
|
||
Comment on attachment 736786 [details] [diff] [review]
Patch v3.1
I'll land this soon.
Attachment #736786 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 18•12 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #17)
> Comment on attachment 736786 [details] [diff] [review]
> Patch v3.1
>
> I'll land this soon.
Thanks a lot.
Reporter | ||
Updated•12 years ago
|
Attachment #735323 -
Attachment is obsolete: true
Reporter | ||
Updated•12 years ago
|
Attachment #735787 -
Attachment is obsolete: true
Reporter | ||
Updated•12 years ago
|
Attachment #735942 -
Attachment is obsolete: true
Comment 20•12 years ago
|
||
Comment 21•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Reporter | ||
Comment 22•12 years ago
|
||
Huzzah. This should be in tomorrow's Nightly. In about a week, Olli or I should look to see if anything has shown up in telemetry.
Reporter | ||
Comment 23•12 years ago
|
||
It is still a bit early for data, but looking at metrics.mozilla.com it looks like 0.5% have the cache disabled. I assume that means it was disabled at least once during whatever session the telemetry is for.
You need to log in
before you can comment on or make changes to this bug.
Description
•