base: Add UnixSocketWatch for inotify-watch creation
Adds a class to reconnect immediately when the initial connection fails, rather than relying on the exponential backoff (which is still there as a safety net)
NOTE: this cl is incomplete as it only addresses traced_probes but doesn't address the SDK. It requires a similar change in ipc/client_impl.cc
🤖 Hi @primiano, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.
@rsavitski mind taking an initial look (no rush)? i'll do the SDK part later (gotta catch my train)
out of curiosity: why not use std::filesystem, is it due to binary size or for being an overkill ?
out of curiosity: why not use std::filesystem, is it due to binary size or for being an overkill ?
Has lots of problems, look at Google internal style guide.
Okay this is good to go now!
OK I addressed everything, but sorry, I just realized that there is 0 reason why this thing is called UnixSocketWatch. There is nothing unix-socket specific.
Let me move this into "FileWatch" in a dedicated file. One more round of patience
@rsavitski this is ready now
🎨 Perfetto UI Build
✅ UI build is ready: https://storage.googleapis.com/perfetto-ci-artifacts/gh-20275546243-1-ui/ui/index.html