Add a new field cpu_load
to the output of getpeerinfo
RPC.
It represents the CPU time spent by the message handling thread for the given peer, weighted for the duration of the connection. That is, for example, if two peers are equally demanding and one is connected longer than the other, then they will have the same cpu_load
number.
Monitoring CPU usage is useful on its own. Also related to #31033.