How does one use TrafficStats.incrementOperationCount()?
- by Dheeraj
The documentation for TrafficStats.incrementOperationCount() says:
Increment count of network operations performed under the given
accounting tag. This can be used to derive bytes-per-operation.
I want to find the total number of bytes transferred during a particular network operation. Since this API claims to help in deriving bytes-per-operation, can someone help me understand how to use it?