diff options
author | Christopher Ferris <cferris@google.com> | 2017-08-02 17:54:27 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2017-08-15 13:03:13 -0700 |
commit | 2cf55995a1e9faf7588e02985fe68a39cdbb3461 (patch) | |
tree | 091136e792cc6e5091c829a5b555be909129b09f /trusty/coverage/coverage.cpp | |
parent | f7ad622264a23dc02b0cb4c7247da586f53982cd (diff) |
Decrease size of LogBufferElements to 32 bytes.
- Remove virtual from the destructor.
- Remove mTag and derive it when calling getTag().
- Add a boolean mDropped to tell when a message is dropped.
- When dropping a message, and it contains valid tag data, reallocate
the message to only contain the tag data.
- Add the packed tag to the class.
This saves about ~150K of PSS on a typical log stream since it moves the
size of the LogBufferElement from 48 bytes to 32 bytes which puts it in
a smaller bin.
Bug: 63792187
Test: Builds, unit tests pass.
Change-Id: Ia5afce343ea3d344fcecd78c648338e94f5c9312
(cherry picked from commit 74e74f96a75209379facaf9d46f424c571b484a8)
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions