socket: Introduce GetSockAddr() and improve test quality Adds a new method to UnixSocket and UnixSocketRaw which wraps getsockname() and returns a host:port string for the current socket. This is needed by aosp/2627899 and removes our fragile random port allocation code for tests, which can be replaced by a Bind() on port 0. Test: sudo modprobe vsock-loopback && perfetto_unittests --gtest_filter=UnixSocketTest.GetSockAddr* Bug: 284258446 Change-Id: Ia8b2d22e13f1ff872055983bc10eab6abe794bd9
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.