LCOV - code coverage report
Current view: top level - pageserver/src - pgdatadir_mapping.rs (source / functions) Coverage Total Hit
Test: b4ae4c4857f9ef3e144e982a35ee23bc84c71983.info Lines: 55.4 % 1365 756
Test Date: 2024-10-22 22:13:45 Functions: 39.8 % 191 76

Function Name Sort by function name Hit count Sort by function hit count
<<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::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::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>::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>::has_dirty_data_pages 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_extend 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_page_image_zero 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_twophase_file 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_twophase_file::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::set_replorigin 0
<pageserver::pgdatadir_mapping::DatadirModification>::set_replorigin::{closure#0} 0
<pageserver::pgdatadir_mapping::RelationError as core::fmt::Display>::fmt 0
>::from 0
::source 0
::fmt 0
<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_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_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_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::{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>::trigger_aux_file_size_computation 0
<pageserver::tenant::timeline::Timeline>::trigger_aux_file_size_computation::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::delete 2
<pageserver::tenant::timeline::Timeline>::remove_cached_rel_size 2
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_drop 4
::put_rel_drop 2
::put_rel_drop::{closure#0} 2
pageserver::pgdatadir_mapping::tests::aux_files_round_trip 4
pageserver::pgdatadir_mapping::tests::aux_files_round_trip 2
pageserver::pgdatadir_mapping::tests::aux_files_round_trip::{closure#0} 2
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_page_image 6
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_segment_creation 6
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_segment_creation::{closure#0} 6
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_wal_record 8
<pageserver::tenant::timeline::Timeline>::get_checkpoint 12
<pageserver::tenant::timeline::Timeline>::get_checkpoint::{closure#0} 12
<pageserver::tenant::timeline::Timeline>::list_aux_files 12
<pageserver::tenant::timeline::Timeline>::list_aux_files::{closure#0} 12
<pageserver::tenant::timeline::Timeline>::list_aux_files_v2 12
<pageserver::tenant::timeline::Timeline>::list_aux_files_v2::{closure#0} 12
<pageserver::pgdatadir_mapping::DatadirModification>::put_file 16
<pageserver::pgdatadir_mapping::DatadirModification>::put_file::{closure#0} 16
<pageserver::pgdatadir_mapping::DatadirModification>::put_relmap_file 16
<pageserver::pgdatadir_mapping::DatadirModification>::put_relmap_file::{closure#0} 16
<pageserver::tenant::timeline::Timeline>::collect_gc_compaction_keyspace 26
<pageserver::tenant::timeline::Timeline>::collect_gc_compaction_keyspace::{closure#0} 26
<pageserver::pgdatadir_mapping::DatadirModification>::init_empty_test_timeline 170
<pageserver::pgdatadir_mapping::DatadirModification>::init_empty 172
<pageserver::pgdatadir_mapping::DatadirModification>::put_control_file 172
<pageserver::pgdatadir_mapping::DatadirModification>::put_checkpoint 186
<pageserver::tenant::timeline::Timeline>::collect_keyspace 286
<pageserver::tenant::timeline::Timeline>::collect_keyspace::{closure#0} 286
<pageserver::tenant::timeline::Timeline>::collect_keyspace::{closure#0}::overlaps_with::<pageserver_api::key::Key> 286
<pageserver::tenant::timeline::Timeline>::list_dbdirs 286
<pageserver::tenant::timeline::Timeline>::list_dbdirs::{closure#0} 286
<<pageserver::pgdatadir_mapping::TwoPhaseDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 288
<::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>>> 288
<pageserver::tenant::timeline::Timeline>::list_twophase_files 288
<pageserver::tenant::timeline::Timeline>::list_twophase_files::{closure#0} 288
<<pageserver::pgdatadir_mapping::SlruSegmentDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 864
<::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>>> 864
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_creation 1920
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_creation::{closure#0} 1920
<<pageserver::pgdatadir_mapping::RelDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 1932
<::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>>> 1932
<<pageserver::pgdatadir_mapping::DbDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 2240
<::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>>> 2240
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_page_image_zero 2998
<pageserver::pgdatadir_mapping::DatadirModification>::flush 3860
::flush 1930
::flush::{closure#0} 1930
<pageserver::tenant::timeline::Timeline>::update_cached_rel_size 5136
<pageserver::pgdatadir_mapping::DirectoryKind>::offset 5608
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_truncation 6012
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_truncation::{closure#0} 6012
<pageserver::tenant::timeline::Timeline>::get_rel_exists 6050
<pageserver::tenant::timeline::Timeline>::get_rel_exists::{closure#0} 6050
<pageserver::tenant::timeline::Timeline>::get_rel_page_at_lsn 18384
<pageserver::tenant::timeline::Timeline>::get_rel_page_at_lsn::{closure#0} 18384
<pageserver::pgdatadir_mapping::Version>::get 23560
<pageserver::pgdatadir_mapping::Version>::get::{closure#0} 23560
<pageserver::tenant::timeline::Timeline>::get_rel_size 24434
<pageserver::tenant::timeline::Timeline>::get_rel_size::{closure#0} 24434
<pageserver::pgdatadir_mapping::Version>::get_lsn 35620
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_wal_record 145630
<pageserver::pgdatadir_mapping::DatadirModification>::set_lsn 145858
<pageserver::pgdatadir_mapping::DatadirModification>::on_record_end 145864
<pageserver::tenant::timeline::Timeline>::begin_modification 268374
<pageserver::pgdatadir_mapping::DatadirModification>::commit::{closure#0}::{closure#0} 273784
<pageserver::pgdatadir_mapping::DatadirModification>::commit::{closure#0}::{closure#0}::{closure#0} 273784
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_extend 276680
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_extend::{closure#0} 276680
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_page_image 277866
<pageserver::tenant::timeline::Timeline>::set_cached_rel_size 282720
<pageserver::pgdatadir_mapping::DatadirModification>::put_metadata 285936
<pageserver::pgdatadir_mapping::DatadirModification>::len 291704
<pageserver::pgdatadir_mapping::DatadirModification>::get_lsn 418056
<pageserver::pgdatadir_mapping::DatadirModification>::put_data 426508
<pageserver::tenant::timeline::Timeline>::get_cached_rel_size 448540
<pageserver::pgdatadir_mapping::DatadirModification>::get 573172
::get 286586
::get::{closure#0} 286586
<pageserver::pgdatadir_mapping::DatadirModification>::put 709446
<pageserver::pgdatadir_mapping::DatadirModification>::is_data_key 996032
<pageserver::pgdatadir_mapping::DatadirModification>::commit 1486116
::commit 743058
::commit::{closure#0} 743058

Generated by: LCOV version 2.1-beta