generate perfdata for packets per second

Note that this changes the state file format.