tree: 9ee0cb8f42c24da44dd66be2dc896033d0ceb16f [path history] [tgz]
  1. .babelrc
  2. .gitignore
  4. adb_proxy/
  5. loaders/
  6. package.json
  7. src/
  8. tests/
  10. webpack.config.js
  11. yarn.lock

Tool for visualizing window manager traces

Developing WinScope

When the trace is enabled, Window Manager and Surface Flinger capture and save current state to a file at each point of interest. frameworks/base/core/proto/android/server/windowmanagertrace.proto and frameworks/native/services/surfaceflinger/layerproto/layerstrace.proto contain the proto definitions for their internal states.

Checking out code and setting up environment

Building & testing changes

  • Navigate to development/tools/winscope
  • Run yarn run dev

Building with internal extensions

Internal paths in vendor/ which are not available in AOSP must be replaced by stub files. See getWaylandSafePath for an example