commit | adc69617ad5a68f2265cacabc13495485cfd1e52 | [log] [tgz] |
---|---|---|
author | Yichi Chen <yichichen@google.com> | Sat Sep 15 14:51:18 2018 +0800 |
committer | Yichi Chen <yichichen@google.com> | Thu Sep 20 10:10:14 2018 +0800 |
tree | 089b5c609b5bf498182bbbf4ad7493640425e6a5 | |
parent | 84ae607b7a77f4b77b70052d39a46231893d045a [diff] |
SF: Enforce a size limitation on SurfaceTracing SurfaceTracing records operations of each frame update. It can exhaust more than 2GB on memory heap in 5 mins if display keeps updating. Enforce a size limitation on it and stop automatically to prevent memory and stroage from exhausting. Bug: b/115434782 Test: adb shell service call SurfaceFlinger 1025 i32 1 Result: SurfaceTracing can be disabled after running for a while. Change-Id: I52d945f86a7bc501590b7c311f63a6273b9192fd