bitcoin/bitcoin — pull request #1538 by jgarzik (2012-06-30 02:09:10+00:00)
Title: RPC: Add per-message statistics to 'getpeerinfo'

The first commit maintains a per-node byte count, returned as "recvbytes" and "sendbytes".

The second commit maintains per-node, per-msg counters, returned as "recvmsgs" and "sendmsgs" objects.

Example output: https://gist.github.com/3021791