commit | 535e56b4b2c037eae7b570912c5c37715a4c9433 | [log] [tgz] |
---|---|---|
author | Wiwit Rifa'i <wiwitrifai@google.com> | Wed Jun 09 16:34:50 2021 +0800 |
committer | Wiwit Rifa'i <wiwitrifai@google.com> | Thu Jun 10 00:16:10 2021 +0800 |
tree | bb0d98b9b7361085c64a816448a3794b6cf21adc | |
parent | b9f666ed45833fe05f0a3cb51b4676ca713d72a4 [diff] |
metrics: add GPU metrics for SurfaceFlinger Add metrics related to GPU rendering requests that are requested by SurfaceFlinger, i.e to count the number of GPU invocations that are requested by SurfaceFlinger, calculate the average duration of the waiting time, and calculate the total duration when there's at least one GPU request that is still waiting for GPU completion. Bug: 180964088 Test: <trace_processor_shell> --run-metrics android_surfaceflinger \ <perfetto_trace> Test: tools/diff_test_trace_processor.py <trace_processor_shell> \ --trace-filter='surfaceflinger_gpu_invocation' Change-Id: I83cdf9a368ca793111399d004902ee39a091e038
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.