frameworks/native/services/surfaceflinger/Tracing/tools
cpeng 69f93dc236 android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
..
Android.bp android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
LayerTraceGenerator.cpp android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
LayerTraceGenerator.h android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
main.cpp android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
readme.md android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
run.sh android 13 from xiaosuan 2025-08-25 08:17:13 +08:00

readme.md

LayerTraceGenerator

Generates layer traces from transaction traces. The tool is a custom surface flinger build that mocks out everything else apart from the front end logic. Transaction traces are written when the transaction is applied, along wth a timestamp and vsync id. The transactions are parsed from proto and applied to recreate the layer state. The result is then written as a layer trace.

Usage:

  1. build and push to device
  2. run ./layertracegenerator [transaction-trace-path] [output-layers-trace-path]