cpu: add support for outputing a protobuf formatted CPU trace