Open
Description
Could be interesting to be able to grab some stats of the stream usage:
- Total TX/RX bytes count
- Total TX/RX packets count (writes)
- Min/Max/Average read/write size
The only difficulty I see here: Some functions (i.e. readBytes
) could be implemented via read()
on some streams, but it can also be implemented directly by other implementations. Not sure if there's a clean way to handle it.