commit | 78d59ff0a6e0b30aee2e682d3d11d58e109b9ea6 | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Sun May 31 17:25:43 2020 -0700 |
committer | Changyeon Jo <changyeon@google.com> | Sun May 31 17:48:06 2020 -0700 |
tree | 59118d5e05de9a28fcc4cb4fc1c2d9eb2f133dc2 | |
parent | 460e63ffff8574384dd8309f5b0839bfc940f529 [diff] |
Calcuates and reports frame buffer latencies This change implements logics to calculate multiple frame buffer latencies and reports them to statds and the users. For example, below example shows LSHAL status dump with frame buffer latencies. $ adb shell lshal debug \ android.hardware.automotive.evs@1.1::IEvsEnumerator/default \ --dump camera all --collected /dev/video1 Number of collections: 1 Collection interval: 10secs Time Collected: @1560033ms Frames Received: 136 Frames Returned: 135 Frames Ignored : 0 Frames Skipped To Sync: 0 Frames First Roundtrip: 1 Frames Peak Roundtrip: 94 Frames Average Roundtrip: 69.133333 Peak Number of Clients: 1 Fix: 156131016 Test: Run above example Change-Id: I77faf15fce99207189b95484f3c4a0d334501cdc
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.