Lines Matching refs:Summary
79 void verifyProfileSummary(ProfileSummary &Summary, Module &M, in verifyProfileSummary()
83 const bool IsPartialProfile = Summary.isPartialProfile(); in verifyProfileSummary()
84 const double PartialProfileRatio = Summary.getPartialProfileRatio(); in verifyProfileSummary()
86 ProfileSummary &Summary) mutable { in verifyProfileSummary() argument
87 ASSERT_EQ(ProfileSummary::PSK_Sample, Summary.getKind()); in verifyProfileSummary()
88 ASSERT_EQ(138211u, Summary.getTotalCount()); in verifyProfileSummary()
89 ASSERT_EQ(10u, Summary.getNumCounts()); in verifyProfileSummary()
90 ASSERT_EQ(4u, Summary.getNumFunctions()); in verifyProfileSummary()
91 ASSERT_EQ(1437u, Summary.getMaxFunctionCount()); in verifyProfileSummary()
92 ASSERT_EQ(60351u, Summary.getMaxCount()); in verifyProfileSummary()
93 ASSERT_EQ(IsPartialProfile, Summary.isPartialProfile()); in verifyProfileSummary()
94 ASSERT_EQ(PartialProfileRatio, Summary.getPartialProfileRatio()); in verifyProfileSummary()
100 std::vector<ProfileSummaryEntry> &Details = Summary.getDetailedSummary(); in verifyProfileSummary()
113 VerifySummary(Summary); in verifyProfileSummary()
117 Summary.getMD(Context, AddPartialField, AddPartialProfileRatioField); in verifyProfileSummary()
314 ProfileSummary &Summary = Reader->getSummary(); in testRoundTrip() local
315 Summary.setPartialProfile(true); in testRoundTrip()
316 verifyProfileSummary(Summary, M, true, false); in testRoundTrip()
318 Summary.setPartialProfile(false); in testRoundTrip()
319 verifyProfileSummary(Summary, M, true, false); in testRoundTrip()
321 verifyProfileSummary(Summary, M, false, false); in testRoundTrip()
323 Summary.setPartialProfile(true); in testRoundTrip()
324 Summary.setPartialProfileRatio(0.5); in testRoundTrip()
325 verifyProfileSummary(Summary, M, true, true); in testRoundTrip()