RFC: Standalone AutoFDO Profile Tool for GCC
Andi Kleen
andi@firstfloor.org
Mon Sep 14 15:27:47 GMT 2026
> > There are lots of third party libraries that can read perf.data however,
> > or you can use a perf script extension like the one below.
>
> We limited the perf parsing to only what we wanted. If there is an easier way to seperate this out and use an exiting library, that would be great.
> I am open for suggestions.
I don't think there is a good reason to switch as long as your
library is well written: especially tolerates new records
unlike the one in autofdo and doesn't use assert as a generic
error handling mechanism.
There are many optional features in newer perf that you likely
don't support (compression, directories etc.) but these are
not essential for now.
-Andi
More information about the Gcc
mailing list