Perfprofd: Refactor protobuf I/O

Move to its own compilation unit.

Bug: 73175642
Test: mmma system/extras/perfprofd
Change-Id: Iad9ddfe5ea84df9fa1fe27a367ec19aa37162c00
6 files changed