3 ms·
GCC and, I would assume, Clang both support -fprofile-generate and -fprofile-use. But these are based on a trace of actual execution, not a function use profil
by wscott 10y ago
GCC and, I would assume, Clang both support -fprofile-generate and -fprofile-use.
But these are based on a trace of actual execution, not a function use profile like implied by the article. But the article may be after a ELI5 filter.
- alfalfasprout 10y agoI haven't used GCC or Clang's PGO, but Intel's PGO lets you specify the kind of instrumentation used and generates a detailed profile. Clang also lets you use instrumented code-paths to generated detailed profiles (that include function use statistics).