perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

base: Add UnixSocketWatch for inotify-watch creation

Open primiano opened this issue 1 year ago • 7 comments

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

primiano avatar Sep 12 '25 21:09 primiano

🤖 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.

github-actions[bot] avatar Sep 12 '25 21:09 github-actions[bot]

@rsavitski mind taking an initial look (no rush)? i'll do the SDK part later (gotta catch my train)

primiano avatar Sep 12 '25 21:09 primiano

out of curiosity: why not use std::filesystem, is it due to binary size or for being an overkill ?

sashwinbalaji avatar Sep 15 '25 09:09 sashwinbalaji

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.

LalitMaganti avatar Sep 15 '25 09:09 LalitMaganti

Okay this is good to go now!

primiano avatar Sep 18 '25 18:09 primiano

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

primiano avatar Nov 07 '25 12:11 primiano

@rsavitski this is ready now

primiano avatar Nov 07 '25 19:11 primiano

🎨 Perfetto UI Build

✅ UI build is ready: https://storage.googleapis.com/perfetto-ci-artifacts/gh-20275546243-1-ui/ui/index.html

github-actions[bot] avatar Dec 16 '25 16:12 github-actions[bot]