When the trace is enabled, Window Manager and Surface Flinger capture and save current state to a file at each point of interest.
frameworks/native/services/surfaceflinger/layerproto/layerstrace.proto contain the proto definitions for their internal states.
yarn run dev
Internal paths in vendor/ which are not available in AOSP must be replaced by stub files. See getWaylandSafePath for an example