I'm trying to find a way to get the networks statistics (bytes/second sent and recieved) for a specific process under OS X (Objective C app).
This seems quite difficult - I have not found any per-process statistics so far. The is no /proc directory on OS X, and sysctl seems to only give system-wide statistics. My best bet so far is to sniff all incoming/outgoing packets and try to map them by port to specific processes, but it seems like quite a complex solution (and also, I haven't yet figured out how to map open ports to specific processes).
Is there any way to get this information in ObjectiveC under OS X? It would seem that it's possible, I've heard of third party apps that can display this information, but I have no idea how they did it
This seems quite difficult - I have not found any per-process statistics so far. The is no /proc directory on OS X, and sysctl seems to only give system-wide statistics. My best bet so far is to sniff all incoming/outgoing packets and try to map them by port to specific processes, but it seems like quite a complex solution (and also, I haven't yet figured out how to map open ports to specific processes).
Is there any way to get this information in ObjectiveC under OS X? It would seem that it's possible, I've heard of third party apps that can display this information, but I have no idea how they did it