Confirmed users
51
edits
Vincentlin78 (talk | contribs) m (→Basic steps) |
Vincentlin78 (talk | contribs) m (→Basic steps) |
||
Line 17: | Line 17: | ||
* Chrome or Content process CPU bound | * Chrome or Content process CPU bound | ||
** <font color="red">How to make sure the platform is not chrome process CPU bound?</font> In most cases, CPU bound happens in Content process. | ** <font color="red">How to make sure the platform is not chrome process CPU bound?</font> In most cases, CPU bound happens in Content process. | ||
** Enable COMPOSITOR_PERFORMANCE_WARNING option defined in CompositorParent.h. It will print out warning message if layers' transaction or composition time(Chrome process) is too long. | ** Enable COMPOSITOR_PERFORMANCE_WARNING option defined in CompositorParent.h. It will print out warning message if layers' transaction or composition time(Chrome process) is too long(the threshold is 15ms now). | ||
*** Note that the composition time here contains both "composite scheduling" and "layers' composing". And the "layers' composing" is executed by GPU if HWComposer is not enabled. | |||
For example: | |||
"adb shell logcat" may print out the two messages. | |||
if composition time is too long => "Compositor: Composite took 20 ms." | |||
if transaction time is too long => "Compositor: Layers update took 22 ms (blocking gecko)." | |||
* memcpy peformance | * memcpy peformance | ||
** System memory to graphic memory copy | ** System memory to graphic memory copy |