Perfprofd: Generalize post-collection handling

Add a handler function to process to encoded protobuf. For now, just write
it to file, as before.

Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: Ife55d6f62408fd1fd2eac5af3ad4cd319b985a69
6 files changed