commit | a3e7ddc06efaf5391e0dbe2fa46c4e735fc98daa | [log] [tgz] |
---|---|---|
author | Chia-I Wu <olv@google.com> | Thu Sep 20 11:42:46 2018 -0700 |
committer | Chia-I Wu <olv@google.com> | Thu Sep 20 16:06:37 2018 -0700 |
tree | 841aadd8d9c93262614b09f14f54ace631178e04 | |
parent | ab19909a2a5ee41950e5685925346b805e6831ae [diff] |
surfaceflinger: free SurfaceTracing memory Allocate LayersTraceFileProto on the heap because Clear does not free the memory. Replace mTrace->Clear() by mTrace.reset(). This is temporary. Eventually, we want to enable continuous tracing and dump only the last N frames. We will record LayersProto in a circular buffer and create LayersTraceFileProto only to serialize the buffer to a file. Bug: 115434782 Test: winscope trace Change-Id: I3a3e499ace08cd4b06c38be8ad2ad59bfcdba5d7