commit | 43ebf4d61daeeeb3caa32300f9c80c4c975ece7d | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Wed Jan 02 20:04:34 2019 +0100 |
committer | Primiano Tucci <primiano@google.com> | Wed Jan 02 20:04:34 2019 +0100 |
tree | 2d9b91cd67f9bf21fb2ff162d72702e01045ed59 | |
parent | 5a17545b5ab9cf380fc06c00e5080e2179c96762 [diff] |
Extract base::UnixSocketRaw The unix socket class as hit the three-strikes-and-you-refactor rule (IPC, memory profiler, upcoming logcat). Extracting a simpler base::UnixSocketRaw class which wraps the usual send/receive methods, taking care of edge cases (e.g., O_CLOEXEC, SIGPIPE, partial writes, EINTR) but which is still simple enough to avoid requiring a task runner. This also adds support for kSeqPacket and kDgram types, that will be used by later CLs for logcat. Test: perfetto_unittests && perfetto_integrationtests Bug: 122243384 Change-Id: If0840a5fa6ddb058730e87ed88f3a05addc208d0
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.