TPEPlatform/Graphic

From MozillaWiki
Jump to navigation Jump to search

Rendering performance analysis

  • Basic steps
    • Check FPS/too many repaint events
    • Check CPU usage on content or chrome process
      • adb shell top -s cpu -m 10 -t
  • CPU bound
    • CPU scheduling
      • Try to lock CPU cores/frequency(platform-dependent)
      • use watch -n 0.3 "adb shell cat file_node_of_CPU_frequency"
      • use simple script to see CPU loading and frequency
        • adb shell while true; do i=1; done
    • Gecko profiler[1] to get the callstack of CPU bound
    • Linux perf
  • Content process profiling
    • Software rendering
    • GL rendering
  • Chrome process profiling