Custom Ingest for native application

I have a native (C++) application with a built-in profiler. This profiler has it’s own transport format, and its own file format. I cannot change either of these things, but I can process this data into a new format for submission elsewhere.

I’d like to submit profiler data over to Pyroscope for inspection. Is there a way I can generate valid Pyroscope input from a native application?