LCOV - code coverage report
Current view: top level - pageserver/src - pgdatadir_mapping.rs (source / functions) Coverage Total Hit
Test: b9d67f908f91f00e353a27440ba89f642a869959.info Lines: 58.4 % 1649 963
Test Date: 2024-11-19 21:44:13 Functions: 42.0 % 205 86

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>::approx_pending_bytes::{closure#0} 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>::get::{closure#0}::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::has_dirty_data 0
<pageserver::pgdatadir_mapping::DatadirModification>::has_dirty_data::{closure#0} 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_rel_page_at_lsn_batched::{closure#0}::{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::tests::gap_finding 2
pageserver::pgdatadir_mapping::tests::sharded_gap_finding 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>::find_gaps::{closure#0} 6
<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::pgdatadir_mapping::DatadirModification>::put_rel_drops 10
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_drops::{closure#0} 10
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_wal_record 12
<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 40
<pageserver::tenant::timeline::Timeline>::collect_gc_compaction_keyspace::{closure#0} 40
<pageserver::pgdatadir_mapping::DatadirModification>::init_empty_test_timeline 176
<pageserver::pgdatadir_mapping::DatadirModification>::init_empty 178
<pageserver::pgdatadir_mapping::DatadirModification>::put_control_file 178
<pageserver::pgdatadir_mapping::DatadirModification>::put_checkpoint 192
<pageserver::tenant::timeline::Timeline>::collect_keyspace 292
<pageserver::tenant::timeline::Timeline>::collect_keyspace::{closure#0} 292
<pageserver::tenant::timeline::Timeline>::collect_keyspace::{closure#0}::overlaps_with::<pageserver_api::key::Key> 292
<pageserver::tenant::timeline::Timeline>::list_dbdirs 292
<pageserver::tenant::timeline::Timeline>::list_dbdirs::{closure#0} 292
<<pageserver::pgdatadir_mapping::TwoPhaseDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 294
<::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>>> 294
<pageserver::tenant::timeline::Timeline>::list_twophase_files 294
<pageserver::tenant::timeline::Timeline>::list_twophase_files::{closure#0} 294
<<pageserver::pgdatadir_mapping::SlruSegmentDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 882
<::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>>> 882
<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 2246
<::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>>> 2246
<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::Version>::get 5176
<pageserver::pgdatadir_mapping::Version>::get::{closure#0} 5176
<pageserver::pgdatadir_mapping::DirectoryKind>::offset 5668
<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::tenant::timeline::Timeline>::get_rel_page_at_lsn_batched 18384
<pageserver::tenant::timeline::Timeline>::get_rel_page_at_lsn_batched::{closure#0} 18384
<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>::len::{closure#0} 145650
<pageserver::pgdatadir_mapping::DatadirModification>::find_gaps 145670
<pageserver::pgdatadir_mapping::DatadirModification>::ingest_batch 145852
<pageserver::pgdatadir_mapping::DatadirModification>::ingest_batch::{closure#0} 145852
<pageserver::pgdatadir_mapping::DatadirModification>::set_lsn 145858
<pageserver::tenant::timeline::Timeline>::begin_modification 268380
<pageserver::pgdatadir_mapping::DatadirModification>::commit::{closure#0}::{closure#0} 273826
<pageserver::pgdatadir_mapping::DatadirModification>::commit::{closure#0}::{closure#0}::{closure#0} 273826
<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 277842
<pageserver::pgdatadir_mapping::DatadirModification>::put_data 277868
<pageserver::tenant::timeline::Timeline>::set_cached_rel_size 282720
<pageserver::pgdatadir_mapping::DatadirModification>::put_metadata 285978
<pageserver::pgdatadir_mapping::DatadirModification>::len 291704
<pageserver::pgdatadir_mapping::DatadirModification>::create_relation_if_required 418056
<pageserver::pgdatadir_mapping::DatadirModification>::create_relation_if_required::{closure#0} 418056
<pageserver::pgdatadir_mapping::DatadirModification>::get_lsn 418058
<pageserver::tenant::timeline::Timeline>::get_cached_rel_size 448540
<pageserver::pgdatadir_mapping::DatadirModification>::put 563846
<pageserver::pgdatadir_mapping::DatadirModification>::get 573172
::get 286586
::get::{closure#0} 286586
<pageserver::pgdatadir_mapping::DatadirModification>::is_data_key 850432
<pageserver::pgdatadir_mapping::DatadirModification>::commit 1486128
::commit 743064
::commit::{closure#0} 743064

Generated by: LCOV version 2.1-beta