Closed Bug 989263 Opened 10 years ago Closed 9 years ago

Reduce performance impact of the Developer HUD

Categories

(Firefox OS Graveyard :: Gaia::System, defect, P3)

All
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: janx, Unassigned)

References

Details

(Keywords: perf, Whiteboard: [c=devtools p= s= u=])

Attachments

(1 file)

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).
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).
Depends on: 988237
I'm tagging this so the perf team can track it under devtools category.
Keywords: perf
Whiteboard: [c=devtools p= s= u=]
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.
Depends on: 976024, 1035396
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)
Keywords: leave-open
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+
Thanks! A pref is an excellent idea, I'll keep that in mind.
Keywords: checkin-needed
(The HUD's performance impact has successfully been reduced in other bugs.)
Status: NEW → RESOLVED
Closed: 9 years ago
Keywords: leave-open
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: