Cool project! As a more advanced form, I think it should be possible to get all this information via eBPF rather than ss output and scraping /proc.
Food for thought!
Food for thought!
-> voila!
Whether or not the specific functions needed to replicate this tool are impacted is beyond my knowledge.