LCOV - code coverage report
Current view: top level - pageserver/src - pgdatadir_mapping.rs (source / functions) Coverage Total Hit
Test: 7eb96e224e685167ad85f58f858387d8cf253f63.info Lines: 55.7 % 1503 837
Test Date: 2024-09-23 21:23:07 Functions: 39.6 % 202 80

Function Name Sort by function name Hit count Sort by function hit count
<<pageserver::pgdatadir_mapping::AuxFilesDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 84
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 84
<<pageserver::pgdatadir_mapping::DbDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 6732
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 6732
<<pageserver::pgdatadir_mapping::RelDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 5796
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 5796
<<pageserver::pgdatadir_mapping::RelSizeEntry as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
<<pageserver::pgdatadir_mapping::SlruSegmentDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 2628
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 2628
<<pageserver::pgdatadir_mapping::TwoPhaseDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 876
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 876
<<pageserver::pgdatadir_mapping::TwoPhaseDirectoryV17 as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
<pageserver::pgdatadir_mapping::AuxFilesDirectory>::upsert 48
<pageserver::pgdatadir_mapping::CalculateLogicalSizeError as core::convert::From<pageserver::tenant::timeline::PageReconstructError>>::from 0
<pageserver::pgdatadir_mapping::CalculateLogicalSizeError as core::fmt::Display>::fmt 0
>::from 0
::source 0
::fmt 0
<pageserver::pgdatadir_mapping::CollectKeySpaceError as core::convert::From<pageserver::tenant::timeline::PageReconstructError>>::from 0
<pageserver::pgdatadir_mapping::CollectKeySpaceError as core::fmt::Display>::fmt 0
>::from 0
::source 0
::fmt 0
<pageserver::pgdatadir_mapping::DatadirModification>::approx_pending_bytes 0
<pageserver::pgdatadir_mapping::DatadirModification>::commit 4458468
::commit 2229234
::commit::{closure#0} 2229234
<pageserver::pgdatadir_mapping::DatadirModification>::commit::{closure#0}::{closure#0} 821502
<pageserver::pgdatadir_mapping::DatadirModification>::commit::{closure#0}::{closure#0}::{closure#0} 821502
<pageserver::pgdatadir_mapping::DatadirModification>::delete 6
<pageserver::pgdatadir_mapping::DatadirModification>::drop_dbdir 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_dbdir::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_relmap_file 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_replorigin 0
::drop_replorigin 0
::drop_replorigin::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_slru_segment 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_slru_segment::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_twophase_file 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_twophase_file::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::flush 11580
::flush 5790
::flush::{closure#0} 5790
<pageserver::pgdatadir_mapping::DatadirModification>::get 1719612
::get 859806
::get::{closure#0} 859806
<pageserver::pgdatadir_mapping::DatadirModification>::get_lsn 1254168
<pageserver::pgdatadir_mapping::DatadirModification>::has_dirty_data_pages 0
<pageserver::pgdatadir_mapping::DatadirModification>::init_aux_dir 576
<pageserver::pgdatadir_mapping::DatadirModification>::init_empty 528
<pageserver::pgdatadir_mapping::DatadirModification>::init_empty_test_timeline 522
<pageserver::pgdatadir_mapping::DatadirModification>::is_data_key 2988294
<pageserver::pgdatadir_mapping::DatadirModification>::len 875112
<pageserver::pgdatadir_mapping::DatadirModification>::on_record_end 437592
<pageserver::pgdatadir_mapping::DatadirModification>::put 2128488
<pageserver::pgdatadir_mapping::DatadirModification>::put_checkpoint 570
<pageserver::pgdatadir_mapping::DatadirModification>::put_control_file 528
<pageserver::pgdatadir_mapping::DatadirModification>::put_data 1279524
<pageserver::pgdatadir_mapping::DatadirModification>::put_file 90
<pageserver::pgdatadir_mapping::DatadirModification>::put_file::{closure#0} 90
<pageserver::pgdatadir_mapping::DatadirModification>::put_for_test 6
<pageserver::pgdatadir_mapping::DatadirModification>::put_metadata 857958
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_creation 5760
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_creation::{closure#0} 5760
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_drop 12
::put_rel_drop 6
::put_rel_drop::{closure#0} 6
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_extend 830040
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_extend::{closure#0} 830040
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_page_image 833598
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_page_image_zero 8994
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_truncation 18036
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_truncation::{closure#0} 18036
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_wal_record 436890
<pageserver::pgdatadir_mapping::DatadirModification>::put_relmap_file 48
<pageserver::pgdatadir_mapping::DatadirModification>::put_relmap_file::{closure#0} 48
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_extend 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_page_image 18
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_page_image_zero 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_segment_creation 18
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_segment_creation::{closure#0} 18
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_wal_record 24
<pageserver::pgdatadir_mapping::DatadirModification>::put_twophase_file 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_twophase_file::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::set_lsn 437574
<pageserver::pgdatadir_mapping::DatadirModification>::set_replorigin 0
<pageserver::pgdatadir_mapping::DatadirModification>::set_replorigin::{closure#0} 0
<pageserver::pgdatadir_mapping::DirectoryKind>::offset 17004
<pageserver::pgdatadir_mapping::RelationError as core::fmt::Display>::fmt 0
>::from 0
::source 0
::fmt 0
<pageserver::pgdatadir_mapping::Version>::get 70680
<pageserver::pgdatadir_mapping::Version>::get::{closure#0} 70680
<pageserver::pgdatadir_mapping::Version>::get_lsn 106860
<pageserver::tenant::timeline::Timeline>::begin_modification 805182
<pageserver::tenant::timeline::Timeline>::collect_keyspace 870
<pageserver::tenant::timeline::Timeline>::collect_keyspace::{closure#0} 870
<pageserver::tenant::timeline::Timeline>::collect_keyspace::{closure#0}::overlaps_with::<pageserver_api::key::Key> 870
<pageserver::tenant::timeline::Timeline>::collect_keyspace::{closure#0}::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::find_lsn_for_timestamp 0
<pageserver::tenant::timeline::Timeline>::find_lsn_for_timestamp::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_cached_rel_size 1345620
<pageserver::tenant::timeline::Timeline>::get_checkpoint 36
<pageserver::tenant::timeline::Timeline>::get_checkpoint::{closure#0} 36
<pageserver::tenant::timeline::Timeline>::get_control_file 0
<pageserver::tenant::timeline::Timeline>::get_control_file::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_current_logical_size_non_incremental 0
<pageserver::tenant::timeline::Timeline>::get_current_logical_size_non_incremental::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_db_size 0
<pageserver::tenant::timeline::Timeline>::get_db_size::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_rel_exists 18150
<pageserver::tenant::timeline::Timeline>::get_rel_exists::{closure#0} 18150
<pageserver::tenant::timeline::Timeline>::get_rel_page_at_lsn 55152
<pageserver::tenant::timeline::Timeline>::get_rel_page_at_lsn::{closure#0} 55152
<pageserver::tenant::timeline::Timeline>::get_rel_size 73302
<pageserver::tenant::timeline::Timeline>::get_rel_size::{closure#0} 73302
<pageserver::tenant::timeline::Timeline>::get_relmap_file 0
<pageserver::tenant::timeline::Timeline>::get_relmap_file::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_replorigins 0
<pageserver::tenant::timeline::Timeline>::get_replorigins::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_slru_keyspace 0
<pageserver::tenant::timeline::Timeline>::get_slru_keyspace::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_slru_page_at_lsn 0
<pageserver::tenant::timeline::Timeline>::get_slru_page_at_lsn::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_slru_segment 0
<pageserver::tenant::timeline::Timeline>::get_slru_segment::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_slru_segment_exists 0
<pageserver::tenant::timeline::Timeline>::get_slru_segment_exists::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_slru_segment_size 0
<pageserver::tenant::timeline::Timeline>::get_slru_segment_size::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_timestamp_for_lsn 0
<pageserver::tenant::timeline::Timeline>::get_timestamp_for_lsn::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_timestamp_for_lsn::{closure#0}::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_twophase_file 0
<pageserver::tenant::timeline::Timeline>::get_twophase_file::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::is_latest_commit_timestamp_ge_than 0
<pageserver::tenant::timeline::Timeline>::is_latest_commit_timestamp_ge_than::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::is_latest_commit_timestamp_ge_than::{closure#0}::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::list_aux_files 78
<pageserver::tenant::timeline::Timeline>::list_aux_files::{closure#0} 78
<pageserver::tenant::timeline::Timeline>::list_aux_files_v1 48
<pageserver::tenant::timeline::Timeline>::list_aux_files_v1::{closure#0} 48
<pageserver::tenant::timeline::Timeline>::list_aux_files_v2 72
<pageserver::tenant::timeline::Timeline>::list_aux_files_v2::{closure#0} 72
<pageserver::tenant::timeline::Timeline>::list_dbdirs 870
<pageserver::tenant::timeline::Timeline>::list_dbdirs::{closure#0} 870
<pageserver::tenant::timeline::Timeline>::list_rels 0
<pageserver::tenant::timeline::Timeline>::list_rels::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::list_rels::{closure#0}::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::list_slru_segments 0
<pageserver::tenant::timeline::Timeline>::list_slru_segments::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::list_twophase_files 876
<pageserver::tenant::timeline::Timeline>::list_twophase_files::{closure#0} 876
<pageserver::tenant::timeline::Timeline>::list_twophase_files::{closure#0}::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::map_all_timestamps::<(), <pageserver::tenant::timeline::Timeline>::get_timestamp_for_lsn::{closure#0}::{closure#0}> 0
::map_all_timestamps::<(), ::get_timestamp_for_lsn::{closure#0}::{closure#0}> 0
::map_all_timestamps::::is_latest_commit_timestamp_ge_than::{closure#0}::{closure#0}> 0
<pageserver::tenant::timeline::Timeline>::map_all_timestamps::<(), <pageserver::tenant::timeline::Timeline>::get_timestamp_for_lsn::{closure#0}::{closure#0}>::{closure#0} 0
::map_all_timestamps::<(), ::get_timestamp_for_lsn::{closure#0}::{closure#0}>::{closure#0} 0
::map_all_timestamps::::is_latest_commit_timestamp_ge_than::{closure#0}::{closure#0}>::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::remove_cached_rel_size 6
<pageserver::tenant::timeline::Timeline>::set_cached_rel_size 866196
<pageserver::tenant::timeline::Timeline>::trigger_aux_file_size_computation 0
<pageserver::tenant::timeline::Timeline>::trigger_aux_file_size_computation::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::update_cached_rel_size 15408
pageserver::pgdatadir_mapping::tests::aux_files_round_trip 12
pageserver::pgdatadir_mapping::tests::aux_files_round_trip 6
pageserver::pgdatadir_mapping::tests::aux_files_round_trip::{closure#0} 6

Generated by: LCOV version 2.1-beta