Lines Matching refs:BFI
145 BlockFrequencyInfo BFI = buildBFI(*F); in TEST_F() local
146 EXPECT_FALSE(PSI.isHotBlock(&BB0, &BFI)); in TEST_F()
147 EXPECT_FALSE(PSI.isColdBlock(&BB0, &BFI)); in TEST_F()
150 EXPECT_FALSE(PSI.isHotCallSite(CS1, &BFI)); in TEST_F()
151 EXPECT_FALSE(PSI.isColdCallSite(CS1, &BFI)); in TEST_F()
207 BlockFrequencyInfo BFI = buildBFI(*F); in TEST_F() local
208 EXPECT_TRUE(PSI.isHotBlock(&BB0, &BFI)); in TEST_F()
209 EXPECT_TRUE(PSI.isHotBlock(BB1, &BFI)); in TEST_F()
210 EXPECT_FALSE(PSI.isHotBlock(BB2, &BFI)); in TEST_F()
211 EXPECT_TRUE(PSI.isHotBlock(BB3, &BFI)); in TEST_F()
213 EXPECT_TRUE(PSI.isHotBlockNthPercentile(990000, &BB0, &BFI)); in TEST_F()
214 EXPECT_TRUE(PSI.isHotBlockNthPercentile(990000, BB1, &BFI)); in TEST_F()
215 EXPECT_FALSE(PSI.isHotBlockNthPercentile(990000, BB2, &BFI)); in TEST_F()
216 EXPECT_TRUE(PSI.isHotBlockNthPercentile(990000, BB3, &BFI)); in TEST_F()
218 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, &BB0, &BFI)); in TEST_F()
219 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, BB1, &BFI)); in TEST_F()
220 EXPECT_TRUE(PSI.isColdBlockNthPercentile(990000, BB2, &BFI)); in TEST_F()
221 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, BB3, &BFI)); in TEST_F()
223 EXPECT_TRUE(PSI.isHotBlockNthPercentile(999900, &BB0, &BFI)); in TEST_F()
224 EXPECT_TRUE(PSI.isHotBlockNthPercentile(999900, BB1, &BFI)); in TEST_F()
225 EXPECT_TRUE(PSI.isHotBlockNthPercentile(999900, BB2, &BFI)); in TEST_F()
226 EXPECT_TRUE(PSI.isHotBlockNthPercentile(999900, BB3, &BFI)); in TEST_F()
228 EXPECT_FALSE(PSI.isColdBlockNthPercentile(999900, &BB0, &BFI)); in TEST_F()
229 EXPECT_FALSE(PSI.isColdBlockNthPercentile(999900, BB1, &BFI)); in TEST_F()
230 EXPECT_FALSE(PSI.isColdBlockNthPercentile(999900, BB2, &BFI)); in TEST_F()
231 EXPECT_FALSE(PSI.isColdBlockNthPercentile(999900, BB3, &BFI)); in TEST_F()
233 EXPECT_FALSE(PSI.isHotBlockNthPercentile(10000, &BB0, &BFI)); in TEST_F()
234 EXPECT_FALSE(PSI.isHotBlockNthPercentile(10000, BB1, &BFI)); in TEST_F()
235 EXPECT_FALSE(PSI.isHotBlockNthPercentile(10000, BB2, &BFI)); in TEST_F()
236 EXPECT_FALSE(PSI.isHotBlockNthPercentile(10000, BB3, &BFI)); in TEST_F()
238 EXPECT_TRUE(PSI.isColdBlockNthPercentile(10000, &BB0, &BFI)); in TEST_F()
239 EXPECT_TRUE(PSI.isColdBlockNthPercentile(10000, BB1, &BFI)); in TEST_F()
240 EXPECT_TRUE(PSI.isColdBlockNthPercentile(10000, BB2, &BFI)); in TEST_F()
241 EXPECT_TRUE(PSI.isColdBlockNthPercentile(10000, BB3, &BFI)); in TEST_F()
247 EXPECT_TRUE(PSI.isHotCallSite(CS1, &BFI)); in TEST_F()
248 EXPECT_FALSE(PSI.isHotCallSite(CS2, &BFI)); in TEST_F()
254 EXPECT_FALSE(PSI.isHotCallSite(CS2, &BFI)); in TEST_F()
256 EXPECT_TRUE(PSI.isFunctionHotInCallGraphNthPercentile(990000, F, BFI)); in TEST_F()
257 EXPECT_FALSE(PSI.isFunctionColdInCallGraphNthPercentile(990000, F, BFI)); in TEST_F()
258 EXPECT_FALSE(PSI.isFunctionHotInCallGraphNthPercentile(10000, F, BFI)); in TEST_F()
259 EXPECT_TRUE(PSI.isFunctionColdInCallGraphNthPercentile(10000, F, BFI)); in TEST_F()
274 BlockFrequencyInfo BFI = buildBFI(*F); in TEST_F() local
277 EXPECT_FALSE(PSI.isHotBlockNthPercentile(990000, &BB0, &BFI)); in TEST_F()
278 EXPECT_FALSE(PSI.isHotBlockNthPercentile(990000, BB1, &BFI)); in TEST_F()
279 EXPECT_FALSE(PSI.isHotBlockNthPercentile(990000, BB2, &BFI)); in TEST_F()
280 EXPECT_FALSE(PSI.isHotBlockNthPercentile(990000, BB3, &BFI)); in TEST_F()
281 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, &BB0, &BFI)); in TEST_F()
282 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, BB1, &BFI)); in TEST_F()
283 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, BB2, &BFI)); in TEST_F()
284 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, BB3, &BFI)); in TEST_F()
286 EXPECT_FALSE(PSI.isFunctionHotInCallGraphNthPercentile(990000, F, BFI)); in TEST_F()
287 EXPECT_FALSE(PSI.isFunctionColdInCallGraphNthPercentile(990000, F, BFI)); in TEST_F()
303 BlockFrequencyInfo BFI = buildBFI(*F); in TEST_F() local
304 EXPECT_TRUE(PSI.isHotBlock(&BB0, &BFI)); in TEST_F()
305 EXPECT_TRUE(PSI.isHotBlock(BB1, &BFI)); in TEST_F()
306 EXPECT_FALSE(PSI.isHotBlock(BB2, &BFI)); in TEST_F()
307 EXPECT_TRUE(PSI.isHotBlock(BB3, &BFI)); in TEST_F()
309 EXPECT_TRUE(PSI.isHotBlockNthPercentile(990000, &BB0, &BFI)); in TEST_F()
310 EXPECT_TRUE(PSI.isHotBlockNthPercentile(990000, BB1, &BFI)); in TEST_F()
311 EXPECT_FALSE(PSI.isHotBlockNthPercentile(990000, BB2, &BFI)); in TEST_F()
312 EXPECT_TRUE(PSI.isHotBlockNthPercentile(990000, BB3, &BFI)); in TEST_F()
314 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, &BB0, &BFI)); in TEST_F()
315 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, BB1, &BFI)); in TEST_F()
316 EXPECT_TRUE(PSI.isColdBlockNthPercentile(990000, BB2, &BFI)); in TEST_F()
317 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, BB3, &BFI)); in TEST_F()
319 EXPECT_TRUE(PSI.isHotBlockNthPercentile(999900, &BB0, &BFI)); in TEST_F()
320 EXPECT_TRUE(PSI.isHotBlockNthPercentile(999900, BB1, &BFI)); in TEST_F()
321 EXPECT_TRUE(PSI.isHotBlockNthPercentile(999900, BB2, &BFI)); in TEST_F()
322 EXPECT_TRUE(PSI.isHotBlockNthPercentile(999900, BB3, &BFI)); in TEST_F()
324 EXPECT_FALSE(PSI.isColdBlockNthPercentile(999900, &BB0, &BFI)); in TEST_F()
325 EXPECT_FALSE(PSI.isColdBlockNthPercentile(999900, BB1, &BFI)); in TEST_F()
326 EXPECT_FALSE(PSI.isColdBlockNthPercentile(999900, BB2, &BFI)); in TEST_F()
327 EXPECT_FALSE(PSI.isColdBlockNthPercentile(999900, BB3, &BFI)); in TEST_F()
329 EXPECT_FALSE(PSI.isHotBlockNthPercentile(10000, &BB0, &BFI)); in TEST_F()
330 EXPECT_FALSE(PSI.isHotBlockNthPercentile(10000, BB1, &BFI)); in TEST_F()
331 EXPECT_FALSE(PSI.isHotBlockNthPercentile(10000, BB2, &BFI)); in TEST_F()
332 EXPECT_FALSE(PSI.isHotBlockNthPercentile(10000, BB3, &BFI)); in TEST_F()
334 EXPECT_TRUE(PSI.isColdBlockNthPercentile(10000, &BB0, &BFI)); in TEST_F()
335 EXPECT_TRUE(PSI.isColdBlockNthPercentile(10000, BB1, &BFI)); in TEST_F()
336 EXPECT_TRUE(PSI.isColdBlockNthPercentile(10000, BB2, &BFI)); in TEST_F()
337 EXPECT_TRUE(PSI.isColdBlockNthPercentile(10000, BB3, &BFI)); in TEST_F()
348 EXPECT_FALSE(PSI.isHotCallSite(CS1, &BFI)); in TEST_F()
349 EXPECT_TRUE(PSI.isHotCallSite(CS2, &BFI)); in TEST_F()
354 EXPECT_TRUE(PSI.isHotCallSite(CS2, &BFI)); in TEST_F()
356 EXPECT_TRUE(PSI.isFunctionHotInCallGraphNthPercentile(990000, F, BFI)); in TEST_F()
357 EXPECT_FALSE(PSI.isFunctionColdInCallGraphNthPercentile(990000, F, BFI)); in TEST_F()
358 EXPECT_FALSE(PSI.isFunctionHotInCallGraphNthPercentile(10000, F, BFI)); in TEST_F()
359 EXPECT_TRUE(PSI.isFunctionColdInCallGraphNthPercentile(10000, F, BFI)); in TEST_F()
374 BlockFrequencyInfo BFI = buildBFI(*F); in TEST_F() local
377 EXPECT_FALSE(PSI.isHotBlockNthPercentile(990000, &BB0, &BFI)); in TEST_F()
378 EXPECT_FALSE(PSI.isHotBlockNthPercentile(990000, BB1, &BFI)); in TEST_F()
379 EXPECT_FALSE(PSI.isHotBlockNthPercentile(990000, BB2, &BFI)); in TEST_F()
380 EXPECT_FALSE(PSI.isHotBlockNthPercentile(990000, BB3, &BFI)); in TEST_F()
381 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, &BB0, &BFI)); in TEST_F()
382 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, BB1, &BFI)); in TEST_F()
383 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, BB2, &BFI)); in TEST_F()
384 EXPECT_FALSE(PSI.isColdBlockNthPercentile(990000, BB3, &BFI)); in TEST_F()
386 EXPECT_FALSE(PSI.isFunctionHotInCallGraphNthPercentile(990000, F, BFI)); in TEST_F()
387 EXPECT_FALSE(PSI.isFunctionColdInCallGraphNthPercentile(990000, F, BFI)); in TEST_F()