Lines Matching refs:summaries
527 std::vector<CounterSummary> summaries = BuildSummary(false, false); in TEST_F() local
528 ASSERT_EQ(summaries.size(), 2); in TEST_F()
529 ASSERT_EQ(summaries[0].type_name, "event0"); in TEST_F()
530 ASSERT_EQ(summaries[0].count, 1); in TEST_F()
531 ASSERT_NEAR(summaries[0].scale, 1.0, 1e-5); in TEST_F()
532 ASSERT_EQ(summaries[1].type_name, "event1"); in TEST_F()
533 ASSERT_EQ(summaries[1].count, 2); in TEST_F()
534 ASSERT_NEAR(summaries[1].scale, 1.0, 1e-5); in TEST_F()
543 std::vector<CounterSummary> summaries = BuildSummary(false, false); in TEST_F() local
544 ASSERT_EQ(summaries.size(), 1); in TEST_F()
545 ASSERT_EQ(summaries[0].count, 5); in TEST_F()
546 ASSERT_NEAR(summaries[0].scale, 1.25, 1e-5); in TEST_F()
555 std::vector<CounterSummary> summaries = BuildSummary(true, false); in TEST_F() local
556 ASSERT_EQ(summaries.size(), 2); in TEST_F()
557 ASSERT_EQ(summaries[0].thread->tid, 1); in TEST_F()
558 ASSERT_EQ(summaries[0].cpu, -1); in TEST_F()
559 ASSERT_EQ(summaries[0].count, 3); in TEST_F()
560 ASSERT_NEAR(summaries[0].scale, 1.5, 1e-5); in TEST_F()
561 ASSERT_EQ(summaries[1].thread->tid, 0); in TEST_F()
562 ASSERT_EQ(summaries[0].cpu, -1); in TEST_F()
563 ASSERT_EQ(summaries[1].count, 2); in TEST_F()
564 ASSERT_NEAR(summaries[1].scale, 1.0, 1e-5); in TEST_F()
573 std::vector<CounterSummary> summaries = BuildSummary(false, true); in TEST_F() local
574 ASSERT_TRUE(summaries[0].thread == nullptr); in TEST_F()
575 ASSERT_EQ(summaries[0].cpu, 0); in TEST_F()
576 ASSERT_EQ(summaries[0].count, 2); in TEST_F()
577 ASSERT_NEAR(summaries[0].scale, 1.0, 1e-5); in TEST_F()
578 ASSERT_EQ(summaries.size(), 2); in TEST_F()
579 ASSERT_TRUE(summaries[1].thread == nullptr); in TEST_F()
580 ASSERT_EQ(summaries[1].cpu, 1); in TEST_F()
581 ASSERT_EQ(summaries[1].count, 3); in TEST_F()
582 ASSERT_NEAR(summaries[1].scale, 1.5, 1e-5); in TEST_F()
591 std::vector<CounterSummary> summaries = BuildSummary(true, true); in TEST_F() local
592 ASSERT_EQ(summaries.size(), 4); in TEST_F()
593 ASSERT_EQ(summaries[0].thread->tid, 1); in TEST_F()
594 ASSERT_EQ(summaries[0].cpu, 0); in TEST_F()
595 ASSERT_EQ(summaries[0].count, 3); in TEST_F()
596 ASSERT_NEAR(summaries[0].scale, 1.0, 1e-5); in TEST_F()
597 ASSERT_EQ(summaries[1].thread->tid, 1); in TEST_F()
598 ASSERT_EQ(summaries[1].cpu, 1); in TEST_F()
599 ASSERT_EQ(summaries[1].count, 4); in TEST_F()
600 ASSERT_NEAR(summaries[1].scale, 2.0, 1e-5); in TEST_F()
601 ASSERT_EQ(summaries[2].thread->tid, 0); in TEST_F()
602 ASSERT_EQ(summaries[2].cpu, 0); in TEST_F()
603 ASSERT_EQ(summaries[2].count, 1); in TEST_F()
604 ASSERT_NEAR(summaries[2].scale, 1.0, 1e-5); in TEST_F()
605 ASSERT_EQ(summaries[3].thread->tid, 0); in TEST_F()
606 ASSERT_EQ(summaries[3].cpu, 1); in TEST_F()
607 ASSERT_EQ(summaries[3].count, 2); in TEST_F()
608 ASSERT_NEAR(summaries[3].scale, 1.0, 1e-5); in TEST_F()
616 std::vector<CounterSummary> summaries = BuildSummary(true, true); in TEST_F() local
617 ASSERT_EQ(summaries[0].count, 2); in TEST_F()
618 ASSERT_EQ(summaries[1].count, 1); in TEST_F()
627 std::vector<CounterSummary> summaries = BuildSummary(true, true); in TEST_F() local
628 ASSERT_EQ(summaries[0].count, 5); in TEST_F()
629 ASSERT_EQ(summaries[1].count, 1); in TEST_F()
630 ASSERT_EQ(summaries[2].count, 3); in TEST_F()
638 std::vector<CounterSummary> summaries = BuildSummary(false, true); in TEST_F() local
639 ASSERT_EQ(summaries[0].cpu, 0); in TEST_F()
640 ASSERT_EQ(summaries[1].cpu, 1); in TEST_F()
650 std::vector<CounterSummary> summaries = BuildSummary(true, false); in TEST_F() local
651 ASSERT_EQ(summaries[0].count, 1) << "key = " << key; in TEST_F()
652 ASSERT_EQ(summaries[1].count, 2) << "key = " << key; in TEST_F()