Closed
Bug 989263
Opened 11 years ago
Closed 9 years ago
Reduce performance impact of the Developer HUD
Categories
(Firefox OS Graveyard :: Gaia::System, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: janx, Unassigned)
References
Details
(Keywords: perf, Whiteboard: [c=devtools p= s= u=])
Attachments
(1 file)
888 bytes,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
Currently, running Firefox OS with the Developer HUD active means that every frame being created will receive instrumentation in the form of devtools child actors (the following method is called on every frame with a manifestURL: http://dxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/main.js#370-387).
Reporter | ||
Comment 1•11 years ago
|
||
To reduce the performance hit of the Developer HUD, it would be great to only load devtools actors when they are actually needed (e.g. to track errors, reflows, etc).
Comment 2•11 years ago
|
||
I'm tagging this so the perf team can track it under devtools category.
Keywords: perf
Whiteboard: [c=devtools p= s= u=]
Priority: -- → P3
Reporter | ||
Comment 3•11 years ago
|
||
Measuring "App memory" is quite perf intensive, but bug 976024 introduced a much lighter "Unique Set Size" tracker.
Tracking "USS" rather than "App memory" is encouraged, because it is faster and covers all of an app's footprint (for example "App memory" doesn't track big resources like images). Bug 976024 tries to nudge HUD users in that direction by tracking USS by default when the HUD is activated.
Bug 1035396 tries to make USS tracking even faster/lighter.
Reporter | ||
Comment 4•11 years ago
|
||
Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 8467754 [details] [diff] [review]
Reduce Developer HUD polling frequency for USS. r=21
The memory widget doesn't need to be updated very frequently. I found that reducing the poll frequency to .5Hz made USS monitoring's impact significantly less visible.
Attachment #8467754 -
Flags: review?(21)
Reporter | ||
Updated•11 years ago
|
Keywords: leave-open
Comment 6•11 years ago
|
||
Comment on attachment 8467754 [details] [diff] [review]
Reduce Developer HUD polling frequency for USS. r=21
Review of attachment 8467754 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM. If we need to adjust it again, we should seriously think about creating a pref for it.
Attachment #8467754 -
Flags: review?(21) → review+
Reporter | ||
Comment 7•11 years ago
|
||
Thanks! A pref is an excellent idea, I'll keep that in mind.
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Keywords: checkin-needed
Reporter | ||
Comment 10•9 years ago
|
||
(The HUD's performance impact has successfully been reduced in other bugs.)
You need to log in
before you can comment on or make changes to this bug.
Description
•