[llvm] [CSSPGO] Compute and report profile matching recovered callsites and samples (PR #79090)
Lei Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 18:30:20 PST 2024
================
@@ -444,15 +444,36 @@ class SampleProfileMatcher {
// the profile.
StringMap<LocToLocMap> FuncMappings;
- // Profile mismatching statstics.
+ // Match state for an anchor/callsite.
+ enum class MatchState {
+ Matched = 0,
+ Mismatched = 1,
+ // Stay Matched after profile matching.
+ StayMatched = 2,
----------------
wlei-llvm wrote:
Sure, I lean towards the second one(state change), thinking it can align with the name of the stats counter such as `NumRecoveredCallsites`, `RecoveredCallsiteSamples`
Updated in the new version, thanks for the suggestion!
https://github.com/llvm/llvm-project/pull/79090
More information about the llvm-commits
mailing list