I am doing some performance work where I need to associate the requests in the HAR file coming from Chromium with the underlying network packet data.
Is there an API (using DevTools) or some other way I can determine the Tcp source ip/port and dest ip/port that is associated with each connection?
I am looking at this field in the HAR file: "connection": "181486". It uniquely identifies a TCP connection, but alas does not map to the underlying TCP port that was used.
In the chrome://net-internals/#events I can see that the SOCKET event has what I need. Is there is a way to perhaps listen on these socket events via an extension then merge with the HAR file? It looks like the event number matches the "connection" entry in the har file.
Would the Chromium team accept a code patch that would add the network information into the exported HAR file?
202234: SOCKET