Lines Matching refs:get_perf_context
93 get_perf_context()->Reset(); in TEST_F()
99 hist_get.Add(get_perf_context()->user_key_comparison_count); in TEST_F()
112 get_perf_context()->Reset(); in TEST_F()
115 hist_seek_to_first.Add(get_perf_context()->user_key_comparison_count); in TEST_F()
121 << "ikey skipped: " << get_perf_context()->internal_key_skipped_count in TEST_F()
124 << get_perf_context()->internal_delete_skipped_count << "\n" in TEST_F()
134 get_perf_context()->Reset(); in TEST_F()
138 hist_seek.Add(get_perf_context()->user_key_comparison_count); in TEST_F()
140 std::cout << "seek cmp: " << get_perf_context()->user_key_comparison_count in TEST_F()
141 << " ikey skipped " << get_perf_context()->internal_key_skipped_count in TEST_F()
143 << get_perf_context()->internal_delete_skipped_count in TEST_F()
147 get_perf_context()->Reset(); in TEST_F()
153 std::cout << "next cmp: " << get_perf_context()->user_key_comparison_count in TEST_F()
272 get_perf_context()->Reset(); in ProfileQueries()
280 get_perf_context()->write_pre_and_post_process_time); in ProfileQueries()
281 hist_write_wal_time.Add(get_perf_context()->write_wal_time); in ProfileQueries()
282 hist_write_memtable_time.Add(get_perf_context()->write_memtable_time); in ProfileQueries()
283 hist_write_delay_time.Add(get_perf_context()->write_delay_time); in ProfileQueries()
285 get_perf_context()->write_thread_wait_nanos); in ProfileQueries()
287 get_perf_context()->write_scheduling_flushes_compactions_time); in ProfileQueries()
288 hist_put.Add(get_perf_context()->user_key_comparison_count); in ProfileQueries()
289 total_db_mutex_nanos += get_perf_context()->db_mutex_lock_nanos; in ProfileQueries()
306 get_perf_context()->Reset(); in ProfileQueries()
309 hist_get_snapshot.Add(get_perf_context()->get_snapshot_time); in ProfileQueries()
310 hist_get_memtable.Add(get_perf_context()->get_from_memtable_time); in ProfileQueries()
311 hist_get_files.Add(get_perf_context()->get_from_output_files_time); in ProfileQueries()
312 hist_num_memtable_checked.Add(get_perf_context()->get_from_memtable_count); in ProfileQueries()
313 hist_get_post_process.Add(get_perf_context()->get_post_process_time); in ProfileQueries()
314 hist_get.Add(get_perf_context()->user_key_comparison_count); in ProfileQueries()
316 get_perf_context()->Reset(); in ProfileQueries()
318 hist_mget_snapshot.Add(get_perf_context()->get_snapshot_time); in ProfileQueries()
319 hist_mget_memtable.Add(get_perf_context()->get_from_memtable_time); in ProfileQueries()
320 hist_mget_files.Add(get_perf_context()->get_from_output_files_time); in ProfileQueries()
321 hist_mget_num_memtable_checked.Add(get_perf_context()->get_from_memtable_count); in ProfileQueries()
322 hist_mget_post_process.Add(get_perf_context()->get_post_process_time); in ProfileQueries()
323 hist_mget.Add(get_perf_context()->user_key_comparison_count); in ProfileQueries()
420 get_perf_context()->Reset(); in ProfileQueries()
423 hist_get_snapshot.Add(get_perf_context()->get_snapshot_time); in ProfileQueries()
424 hist_get_memtable.Add(get_perf_context()->get_from_memtable_time); in ProfileQueries()
425 hist_get_files.Add(get_perf_context()->get_from_output_files_time); in ProfileQueries()
426 hist_num_memtable_checked.Add(get_perf_context()->get_from_memtable_count); in ProfileQueries()
427 hist_get_post_process.Add(get_perf_context()->get_post_process_time); in ProfileQueries()
428 hist_get.Add(get_perf_context()->user_key_comparison_count); in ProfileQueries()
430 get_perf_context()->Reset(); in ProfileQueries()
432 hist_mget_snapshot.Add(get_perf_context()->get_snapshot_time); in ProfileQueries()
433 hist_mget_memtable.Add(get_perf_context()->get_from_memtable_time); in ProfileQueries()
434 hist_mget_files.Add(get_perf_context()->get_from_output_files_time); in ProfileQueries()
435 hist_mget_num_memtable_checked.Add(get_perf_context()->get_from_memtable_count); in ProfileQueries()
436 hist_mget_post_process.Add(get_perf_context()->get_post_process_time); in ProfileQueries()
437 hist_mget.Add(get_perf_context()->user_key_comparison_count); in ProfileQueries()
540 get_perf_context()->Reset(); in TEST_F()
545 hist_wal_time.Add(get_perf_context()->write_wal_time); in TEST_F()
546 hist_time_diff.Add(put_time - get_perf_context()->write_wal_time); in TEST_F()
563 get_perf_context()->Reset(); in TEST_F()
567 hist_seek.Add(get_perf_context()->user_key_comparison_count); in TEST_F()
572 get_perf_context()->Reset(); in TEST_F()
574 hist_next.Add(get_perf_context()->user_key_comparison_count); in TEST_F()
592 get_perf_context()->Reset(); in TEST_F()
593 ASSERT_EQ(get_perf_context()->db_mutex_lock_nanos, 0); in TEST_F()
598 ASSERT_EQ(get_perf_context()->db_mutex_lock_nanos, 0); in TEST_F()
601 ASSERT_GT(get_perf_context()->db_mutex_lock_nanos, 0); in TEST_F()
617 get_perf_context()->Reset(); in TEST_F()
623 ASSERT_GT(get_perf_context()->db_condition_wait_nanos, 0); in TEST_F()
625 ASSERT_EQ(get_perf_context()->db_condition_wait_nanos, 0); in TEST_F()
631 get_perf_context()->Reset(); in TEST_F()
632 get_perf_context()->block_read_count = 12345; in TEST_F()
634 std::string zero_included = get_perf_context()->ToString(); in TEST_F()
638 std::string zero_excluded = get_perf_context()->ToString(true); in TEST_F()
659 get_perf_context()->Reset(); in TEST_F()
666 EXPECT_GT(get_perf_context()->merge_operator_time_nanos, 0); in TEST_F()
670 get_perf_context()->Reset(); in TEST_F()
677 EXPECT_GT(get_perf_context()->merge_operator_time_nanos, 0); in TEST_F()
681 get_perf_context()->Reset(); in TEST_F()
688 EXPECT_GT(get_perf_context()->merge_operator_time_nanos, 0); in TEST_F()
696 get_perf_context()->Reset(); in TEST_F()
697 get_perf_context()->EnablePerLevelPerfContext(); in TEST_F()
701 (*(get_perf_context()->level_to_perf_context))[5].bloom_filter_useful); in TEST_F()
703 perf_context_assign = *get_perf_context(); in TEST_F()
707 get_perf_context()->ClearPerLevelPerfContext(); in TEST_F()
708 get_perf_context()->Reset(); in TEST_F()
717 get_perf_context()->Reset(); in TEST_F()
718 get_perf_context()->EnablePerLevelPerfContext(); in TEST_F()
722 (*(get_perf_context()->level_to_perf_context))[5].bloom_filter_useful); in TEST_F()
723 PerfContext perf_context_copy(*get_perf_context()); in TEST_F()
726 get_perf_context()->ClearPerLevelPerfContext(); in TEST_F()
727 get_perf_context()->Reset(); in TEST_F()
735 get_perf_context()->Reset(); in TEST_F()
736 get_perf_context()->EnablePerLevelPerfContext(); in TEST_F()
740 (*(get_perf_context()->level_to_perf_context))[5].bloom_filter_useful); in TEST_F()
741 PerfContext perf_context_move = std::move(*get_perf_context()); in TEST_F()
744 get_perf_context()->ClearPerLevelPerfContext(); in TEST_F()
745 get_perf_context()->Reset(); in TEST_F()
754 get_perf_context()->Reset(); in TEST_F()
755 get_perf_context()->EnablePerLevelPerfContext(); in TEST_F()
757 get_perf_context()->DisablePerLevelPerfContext(); in TEST_F()
759 get_perf_context()->EnablePerLevelPerfContext(); in TEST_F()
761 get_perf_context()->DisablePerLevelPerfContext(); in TEST_F()
762 PerfContext perf_context_copy(*get_perf_context()); in TEST_F()
772 get_perf_context()->ClearPerLevelPerfContext(); in TEST_F()
773 get_perf_context()->Reset(); in TEST_F()
777 get_perf_context()->Reset(); in TEST_F()
778 get_perf_context()->EnablePerLevelPerfContext(); in TEST_F()
789 0, (*(get_perf_context()->level_to_perf_context))[0].bloom_filter_useful); in TEST_F()
791 1, (*(get_perf_context()->level_to_perf_context))[5].bloom_filter_useful); in TEST_F()
793 2, (*(get_perf_context()->level_to_perf_context))[7].bloom_filter_useful); in TEST_F()
794 ASSERT_EQ(1, (*(get_perf_context()->level_to_perf_context))[0] in TEST_F()
796 ASSERT_EQ(1, (*(get_perf_context()->level_to_perf_context))[2] in TEST_F()
798 ASSERT_EQ(1, (*(get_perf_context()->level_to_perf_context))[0] in TEST_F()
800 ASSERT_EQ(5, (*(get_perf_context()->level_to_perf_context))[2] in TEST_F()
802 ASSERT_EQ(2, (*(get_perf_context()->level_to_perf_context))[3] in TEST_F()
804 ASSERT_EQ(4, (*(get_perf_context()->level_to_perf_context))[1] in TEST_F()
806 std::string zero_excluded = get_perf_context()->ToString(true); in TEST_F()
840 get_perf_context()->Reset(); in TEST_F()
846 std::cout << "Get CPU time nanos: " << get_perf_context()->get_cpu_nanos in TEST_F()
854 get_perf_context()->Reset(); in TEST_F()
861 << get_perf_context()->iter_seek_cpu_nanos << "ns\n"; in TEST_F()
865 get_perf_context()->Reset(); in TEST_F()
871 << get_perf_context()->iter_seek_cpu_nanos << "ns\n"; in TEST_F()
875 get_perf_context()->Reset(); in TEST_F()
882 << get_perf_context()->iter_seek_cpu_nanos << "ns\n"; in TEST_F()
886 get_perf_context()->Reset(); in TEST_F()
893 << get_perf_context()->iter_seek_cpu_nanos << "ns\n"; in TEST_F()
897 get_perf_context()->Reset(); in TEST_F()
904 << get_perf_context()->iter_next_cpu_nanos << "ns\n"; in TEST_F()
908 get_perf_context()->Reset(); in TEST_F()
915 << get_perf_context()->iter_prev_cpu_nanos << "ns\n"; in TEST_F()
919 get_perf_context()->Reset(); in TEST_F()
920 auto count = get_perf_context()->iter_seek_cpu_nanos; in TEST_F()
925 auto next_count = get_perf_context()->iter_seek_cpu_nanos; in TEST_F()
933 ASSERT_EQ(count, get_perf_context()->iter_seek_cpu_nanos); in TEST_F()
937 ASSERT_GT(get_perf_context()->iter_seek_cpu_nanos, count); in TEST_F()
938 count = get_perf_context()->iter_seek_cpu_nanos; in TEST_F()
940 ASSERT_EQ(count, get_perf_context()->iter_seek_cpu_nanos); in TEST_F()