src: use string_view for report and related code
Use std::string_view
for process.report code and related code, drop a few unnecessary std::to_string
calls, and use MaybeStackBuffer
instead of MallocedBuffer
, all in order to avoid unnecessary heap allocations.