LCOV - code coverage report
Current view: top level - pageserver/src - pgdatadir_mapping.rs (source / functions) Coverage Total Hit
Test: 322b88762cba8ea666f63cda880cccab6936bf37.info Lines: 52.7 % 1164 613
Test Date: 2024-02-29 11:57:12 Functions: 37.3 % 217 81

Function Name Sort by function name Hit count Sort by function hit count
<pageserver::pgdatadir_mapping::CalculateLogicalSizeError as core::convert::From<pageserver::tenant::timeline::PageReconstructError>>::from 0
<pageserver::pgdatadir_mapping::CalculateLogicalSizeError as core::fmt::Debug>::fmt 0
>::from 0
::source 0
::fmt 0
::fmt 0
<pageserver::pgdatadir_mapping::CollectKeySpaceError as core::convert::From<pageserver::tenant::timeline::PageReconstructError>>::from 0
<pageserver::pgdatadir_mapping::CollectKeySpaceError as core::fmt::Debug>::fmt 0
>::from 0
::source 0
::fmt 0
::fmt 0
<pageserver::pgdatadir_mapping::DatadirModification>::delete::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_dbdir 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_dbdir::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_dbdir::{closure#0}::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_relmap_file 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_slru_segment 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_slru_segment::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_slru_segment::{closure#0}::{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>::drop_twophase_file::{closure#0}::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_drop::{closure#0}::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_extend 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_twophase_file 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_twophase_file::{closure#0} 0
<pageserver::pgdatadir_mapping::LsnForTimestamp as core::fmt::Debug>::fmt 0
<pageserver::pgdatadir_mapping::RelSizeEntry as core::fmt::Debug>::fmt 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
::fmt 0
::deserialize::<_> 0
::serialize::<_> 0
<pageserver::pgdatadir_mapping::RelationError as core::fmt::Debug>::fmt 0
>::from 0
::source 0
::fmt 0
::fmt 0
<pageserver::pgdatadir_mapping::Version as core::clone::Clone>::clone 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::{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_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::{closure#0}::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::list_dbdirs 0
<pageserver::tenant::timeline::Timeline>::list_dbdirs::{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 0
<pageserver::tenant::timeline::Timeline>::list_twophase_files::{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>::update_cached_rel_size 0
<pageserver::pgdatadir_mapping::DatadirModification>::delete 2
<pageserver::tenant::timeline::Timeline>::remove_cached_rel_size 2
pageserver::pgdatadir_mapping::tests::aux_files_round_trip 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::{closure#0} 4
<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::tenant::timeline::Timeline>::list_aux_files 6
<pageserver::tenant::timeline::Timeline>::list_aux_files::{closure#0} 6
<pageserver::pgdatadir_mapping::DatadirModification>::put_file 8
<pageserver::pgdatadir_mapping::DatadirModification>::put_file::{closure#0} 8
<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::pgdatadir_mapping::DatadirModification>::put_relmap_file 16
<pageserver::pgdatadir_mapping::DatadirModification>::put_relmap_file::{closure#0} 16
<pageserver::pgdatadir_mapping::AuxFilesDirectory>::upsert 24
<pageserver::pgdatadir_mapping::DatadirModification>::init_empty_test_timeline 74
<pageserver::pgdatadir_mapping::DatadirModification>::init_empty 76
<pageserver::pgdatadir_mapping::DatadirModification>::put_control_file 76
<pageserver::pgdatadir_mapping::DatadirModification>::put_checkpoint 90
<pageserver::pgdatadir_mapping::DatadirModification>::init_aux_dir 92
<pageserver::tenant::timeline::Timeline>::collect_keyspace 174
<pageserver::tenant::timeline::Timeline>::collect_keyspace::{closure#0} 174
<pageserver::pgdatadir_mapping::AuxFilesDirectory as core::fmt::Debug>::fmt 256
<::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
::default 0
::fmt 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::Serializer<&mut bytes::buf::writer::Writer<&mut bytes::bytes_mut::BytesMut>, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 16
<::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>>> 24
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 24
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 96
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 96
<pageserver::pgdatadir_mapping::TwoPhaseDirectory as core::fmt::Debug>::fmt 500
<::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
::fmt 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 76
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 76
<::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>>> 174
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 174
<pageserver::pgdatadir_mapping::SlruSegmentDirectory as core::fmt::Debug>::fmt 1296
<::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
::fmt 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
::default 76
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 82
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 82
<::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>>> 528
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 528
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_creation 1920
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_creation::{closure#0} 1920
<pageserver::pgdatadir_mapping::DatadirModification>::flush 3860
::flush 1930
::flush::{closure#0} 1930
<pageserver::pgdatadir_mapping::DbDirectory as core::fmt::Debug>::fmt 4420
<::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
::fmt 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 100
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 100
<::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>>> 2110
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 2110
<pageserver::pgdatadir_mapping::DirectoryKind as core::fmt::Debug>::fmt 4848
::clone 0
::eq 0
::fmt 0
::from_usize 0
::into_usize 4848
<pageserver::pgdatadir_mapping::DirectoryKind>::offset 4848
<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::pgdatadir_mapping::RelDirectory as core::fmt::Debug>::fmt 7732
<::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
::fmt 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
::default 8
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 1930
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 1930
<::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
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 1932
<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 23542
<pageserver::pgdatadir_mapping::Version>::get::{closure#0} 23542
<pageserver::tenant::timeline::Timeline>::get_rel_size 24434
<pageserver::tenant::timeline::Timeline>::get_rel_size::{closure#0} 24434
<pageserver::pgdatadir_mapping::Version>::get_lsn 30484
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_wal_record 145630
<pageserver::pgdatadir_mapping::DatadirModification>::set_lsn 145856
<pageserver::tenant::timeline::Timeline>::begin_modification 268272
<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 280864
<pageserver::tenant::timeline::Timeline>::set_cached_rel_size 288732
<pageserver::pgdatadir_mapping::DatadirModification>::len 291704
<pageserver::pgdatadir_mapping::DatadirModification>::get_lsn 418056
<pageserver::tenant::timeline::Timeline>::get_cached_rel_size 448540
<pageserver::pgdatadir_mapping::DatadirModification>::get 573124
::get 286562
::get::{closure#0} 286562
<pageserver::pgdatadir_mapping::DatadirModification>::put 711856
<pageserver::pgdatadir_mapping::DatadirModification>::commit 1485912
::commit 742956
::commit::{closure#0} 742956

Generated by: LCOV version 2.1-beta