summaryrefslogtreecommitdiff
path: root/libcutils/socket_local_server_unix.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-08-02 17:54:27 -0700
committerChristopher Ferris <cferris@google.com>2017-08-11 12:48:11 -0700
commit74e74f96a75209379facaf9d46f424c571b484a8 (patch)
tree2099f2dc64374746e25f0d7df601b9257b172f43 /libcutils/socket_local_server_unix.cpp
parentaf6a262020cc3f85e9c65e38b8dbd6959864cb79 (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
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions