3 ms·
This all depends on what hardware you use to capture your profile, but on recent (Skylake and later) Intel CPUs you can use the Last Branch Record (LBR) to get
by jeffbee 6y ago
This all depends on what hardware you use to capture your profile, but on recent (Skylake and later) Intel CPUs you can use the Last Branch Record (LBR) to get branch source and target, including the call stack.
This deck can give you some idea of what the modern Intel PMU can do: https://protools19.github.io/slides/Eranian_KeynoteSC19.pdf https://protools19.github.io/slides/Eranian_KeynoteSC19.pdf
- loeg 6y agoI think the GP question is, what data do GCC/Clang actually emit with -fprofile-generate?