APZ logging improvement: print whether an APZC is the root or a subframe
Categories
(Core :: Panning and Zooming, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox101 | --- | fixed |
People
(Reporter: botond, Assigned: dlrobertson)
References
Details
Attachments
(1 file)
One of the things that makes APZ logs cumbersome to interpret is that often there is more than one APZC in the layer tree, and logs from different APZCs are interspersed.
Often, we are only interested in logs from one APZC (often the root, other times a particular subframe on the page). You can figure out which APZC that is from the logs (usually by looking at a line that prints the frame metrics), but for other log messages you have to associate them by the APZC address.
We could improve a bit by printing (root)
or (subframe)
next to the APZC address (or for subframes, perhaps also the scroll ID, to distinguish different subframes from each other), which would make it easier to filter for just the APZC of interest.
I'm mainly imagining doing this for the state change messages (which we are further improving in bug 1711574), but we could consider doing it for all of them.
Comment 1•3 years ago
|
||
We also log a content description here
Outputting that along with the scroll guid at that point would be helpful to find the azpc you care about if it isn't root (and make sure the guid is output everywhere so it's more easily searchable perhaps). The content description could even be put on the metrics in certain situations (debug builds?) and output on the compositor side logs.
Reporter | ||
Comment 2•3 years ago
|
||
(In reply to Timothy Nikkel (:tnikkel) from comment #1)
We also log a content description here
Outputting that along with the scroll guid at that point would be helpful to find the azpc you care about if it isn't root (and make sure the guid is output everywhere so it's more easily searchable perhaps).
Yep, good idea.
The content description could even be put on the metrics in certain situations (debug builds?) and output on the compositor side logs.
It's put on the ScrollMetadata
a few lines below the place you linked (if one of the prefs in question is set), and we do print it in the apz.printtree
logs (but like you say it would be useful to print it in more places).
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Comment 5•3 years ago
|
||
bugherder |
Description
•