LCOV - code coverage report
Current view: top level - pageserver/src - pgdatadir_mapping.rs (source / functions) Coverage Total Hit
Test: aca8877be6ceba750c1be359ed71bc1799d52b30.info Lines: 91.4 % 1157 1057
Test Date: 2024-02-14 18:05:35 Functions: 61.8 % 217 134

Function Name Sort by function name Hit count Sort by function hit count
<pageserver::pgdatadir_mapping::AuxFilesDirectory as core::fmt::Debug>::fmt 13329
<::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>>> 2825
::default 0
::fmt 0
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 2825
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 3155
::serialize::<&mut bincode::ser::Serializer<&mut bytes::buf::writer::Writer<&mut bytes::bytes_mut::BytesMut>, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 1369
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 3155
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
<pageserver::pgdatadir_mapping::AuxFilesDirectory>::upsert 1493
<pageserver::pgdatadir_mapping::CalculateLogicalSizeError as core::convert::From<pageserver::tenant::timeline::PageReconstructError>>::from 29
<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 1
<pageserver::pgdatadir_mapping::CollectKeySpaceError as core::fmt::Debug>::fmt 2
>::from 0
::source 1
::fmt 0
::fmt 1
<pageserver::pgdatadir_mapping::DatadirModification>::commit 4193016
::commit 2096508
::commit::{closure#0} 2096508
<pageserver::pgdatadir_mapping::DatadirModification>::delete 67335
<pageserver::pgdatadir_mapping::DatadirModification>::delete::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_dbdir 3
<pageserver::pgdatadir_mapping::DatadirModification>::drop_dbdir::{closure#0} 3
<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 18
<pageserver::pgdatadir_mapping::DatadirModification>::drop_slru_segment::{closure#0} 18
<pageserver::pgdatadir_mapping::DatadirModification>::drop_slru_segment::{closure#0}::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::drop_twophase_file 2
<pageserver::pgdatadir_mapping::DatadirModification>::drop_twophase_file::{closure#0} 2
<pageserver::pgdatadir_mapping::DatadirModification>::drop_twophase_file::{closure#0}::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::flush 1156152
::flush 578076
::flush::{closure#0} 578076
<pageserver::pgdatadir_mapping::DatadirModification>::get 7007022
::get 3503511
::get::{closure#0} 3503511
<pageserver::pgdatadir_mapping::DatadirModification>::get_lsn 56889269
<pageserver::pgdatadir_mapping::DatadirModification>::init_aux_dir 3148
<pageserver::pgdatadir_mapping::DatadirModification>::init_empty 680
<pageserver::pgdatadir_mapping::DatadirModification>::init_empty_test_timeline 70
<pageserver::pgdatadir_mapping::DatadirModification>::len 145387682
<pageserver::pgdatadir_mapping::DatadirModification>::put 64123041
<pageserver::pgdatadir_mapping::DatadirModification>::put_checkpoint 34992
<pageserver::pgdatadir_mapping::DatadirModification>::put_control_file 678
<pageserver::pgdatadir_mapping::DatadirModification>::put_file 124
<pageserver::pgdatadir_mapping::DatadirModification>::put_file::{closure#0} 124
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_creation 653184
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_creation::{closure#0} 653184
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_drop 134624
::put_rel_drop 67312
::put_rel_drop::{closure#0} 67312
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_drop::{closure#0}::{closure#0} 0
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_extend 1829588
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_extend::{closure#0} 1829588
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_page_image 2591084
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_truncation 6344
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_truncation::{closure#0} 6344
<pageserver::pgdatadir_mapping::DatadirModification>::put_rel_wal_record 52739517
<pageserver::pgdatadir_mapping::DatadirModification>::put_relmap_file 2530
<pageserver::pgdatadir_mapping::DatadirModification>::put_relmap_file::{closure#0} 2530
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_extend 1618
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_page_image 3478
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_segment_creation 1872
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_segment_creation::{closure#0} 1872
<pageserver::pgdatadir_mapping::DatadirModification>::put_slru_wal_record 6091255
<pageserver::pgdatadir_mapping::DatadirModification>::put_twophase_file 4
<pageserver::pgdatadir_mapping::DatadirModification>::put_twophase_file::{closure#0} 4
<pageserver::pgdatadir_mapping::DatadirModification>::set_lsn 72693847
<pageserver::pgdatadir_mapping::DbDirectory as core::fmt::Debug>::fmt 1326988
<::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>>> 657906
::fmt 0
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 657906
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 5588
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 5588
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
<pageserver::pgdatadir_mapping::DirectoryKind as core::fmt::Debug>::fmt 1461166
::clone 0
::eq 0
::fmt 0
::from_usize 0
::into_usize 1461166
<pageserver::pgdatadir_mapping::DirectoryKind>::offset 1461166
<pageserver::pgdatadir_mapping::LsnForTimestamp as core::fmt::Debug>::fmt 0
<pageserver::pgdatadir_mapping::RelDirectory as core::fmt::Debug>::fmt 3421287
<::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>>> 988893
::default 2437
::fmt 0
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 988893
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 720532
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 720532
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 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::SlruSegmentDirectory as core::fmt::Debug>::fmt 27762
<::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>>> 10971
::default 680
::fmt 0
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 10971
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 2570
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 2570
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
<pageserver::pgdatadir_mapping::TwoPhaseDirectory as core::fmt::Debug>::fmt 4396
<::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>>> 1512
::fmt 0
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 1512
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 686
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 686
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
<pageserver::pgdatadir_mapping::Version as core::clone::Clone>::clone 0
<pageserver::pgdatadir_mapping::Version>::get 4938936
<pageserver::pgdatadir_mapping::Version>::get::{closure#0} 4938936
<pageserver::pgdatadir_mapping::Version>::get_lsn 5198553
<pageserver::tenant::timeline::Timeline>::begin_modification 1018095
<pageserver::tenant::timeline::Timeline>::collect_keyspace 907
<pageserver::tenant::timeline::Timeline>::collect_keyspace::{closure#0} 907
<pageserver::tenant::timeline::Timeline>::find_lsn_for_timestamp 181
<pageserver::tenant::timeline::Timeline>::find_lsn_for_timestamp::{closure#0} 181
<pageserver::tenant::timeline::Timeline>::get_cached_rel_size 61931885
<pageserver::tenant::timeline::Timeline>::get_checkpoint 1965
<pageserver::tenant::timeline::Timeline>::get_checkpoint::{closure#0} 1965
<pageserver::tenant::timeline::Timeline>::get_control_file 595
<pageserver::tenant::timeline::Timeline>::get_control_file::{closure#0} 595
<pageserver::tenant::timeline::Timeline>::get_current_logical_size_non_incremental 689
<pageserver::tenant::timeline::Timeline>::get_current_logical_size_non_incremental::{closure#0} 689
<pageserver::tenant::timeline::Timeline>::get_db_size 8
<pageserver::tenant::timeline::Timeline>::get_db_size::{closure#0} 8
<pageserver::tenant::timeline::Timeline>::get_rel_exists 430565
<pageserver::tenant::timeline::Timeline>::get_rel_exists::{closure#0} 430565
<pageserver::tenant::timeline::Timeline>::get_rel_page_at_lsn 4470425
<pageserver::tenant::timeline::Timeline>::get_rel_page_at_lsn::{closure#0} 4470425
<pageserver::tenant::timeline::Timeline>::get_rel_page_at_lsn::{closure#0}::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::get_rel_size 4612051
<pageserver::tenant::timeline::Timeline>::get_rel_size::{closure#0} 4612051
<pageserver::tenant::timeline::Timeline>::get_relmap_file 2438
<pageserver::tenant::timeline::Timeline>::get_relmap_file::{closure#0} 2438
<pageserver::tenant::timeline::Timeline>::get_slru_keyspace 607
<pageserver::tenant::timeline::Timeline>::get_slru_keyspace::{closure#0} 607
<pageserver::tenant::timeline::Timeline>::get_slru_page_at_lsn 2918
<pageserver::tenant::timeline::Timeline>::get_slru_page_at_lsn::{closure#0} 2918
<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 1642
<pageserver::tenant::timeline::Timeline>::get_slru_segment_exists::{closure#0} 1642
<pageserver::tenant::timeline::Timeline>::get_slru_segment_size 6355
<pageserver::tenant::timeline::Timeline>::get_slru_segment_size::{closure#0} 6355
<pageserver::tenant::timeline::Timeline>::get_timestamp_for_lsn 12
<pageserver::tenant::timeline::Timeline>::get_timestamp_for_lsn::{closure#0} 12
<pageserver::tenant::timeline::Timeline>::get_timestamp_for_lsn::{closure#0}::{closure#0} 10
<pageserver::tenant::timeline::Timeline>::get_twophase_file 2
<pageserver::tenant::timeline::Timeline>::get_twophase_file::{closure#0} 2
<pageserver::tenant::timeline::Timeline>::is_latest_commit_timestamp_ge_than 2908
<pageserver::tenant::timeline::Timeline>::is_latest_commit_timestamp_ge_than::{closure#0} 2908
<pageserver::tenant::timeline::Timeline>::is_latest_commit_timestamp_ge_than::{closure#0}::{closure#0} 2695
<pageserver::tenant::timeline::Timeline>::list_aux_files 2422
<pageserver::tenant::timeline::Timeline>::list_aux_files::{closure#0} 2422
<pageserver::tenant::timeline::Timeline>::list_aux_files::{closure#0}::{closure#0} 0
<pageserver::tenant::timeline::Timeline>::list_dbdirs 601
<pageserver::tenant::timeline::Timeline>::list_dbdirs::{closure#0} 601
<pageserver::tenant::timeline::Timeline>::list_rels 8170
<pageserver::tenant::timeline::Timeline>::list_rels::{closure#0} 8170
<pageserver::tenant::timeline::Timeline>::list_rels::{closure#0}::{closure#0} 1937069
<pageserver::tenant::timeline::Timeline>::list_slru_segments 4732
<pageserver::tenant::timeline::Timeline>::list_slru_segments::{closure#0} 4732
<pageserver::tenant::timeline::Timeline>::list_twophase_files 601
<pageserver::tenant::timeline::Timeline>::list_twophase_files::{closure#0} 601
<pageserver::tenant::timeline::Timeline>::map_all_timestamps::<(), <pageserver::tenant::timeline::Timeline>::get_timestamp_for_lsn::{closure#0}::{closure#0}> 2920
::map_all_timestamps::<(), ::get_timestamp_for_lsn::{closure#0}::{closure#0}> 12
::map_all_timestamps::::is_latest_commit_timestamp_ge_than::{closure#0}::{closure#0}> 2908
<pageserver::tenant::timeline::Timeline>::map_all_timestamps::<(), <pageserver::tenant::timeline::Timeline>::get_timestamp_for_lsn::{closure#0}::{closure#0}>::{closure#0} 2920
::map_all_timestamps::<(), ::get_timestamp_for_lsn::{closure#0}::{closure#0}>::{closure#0} 12
::map_all_timestamps::::is_latest_commit_timestamp_ge_than::{closure#0}::{closure#0}>::{closure#0} 2908
<pageserver::tenant::timeline::Timeline>::remove_cached_rel_size 67312
<pageserver::tenant::timeline::Timeline>::set_cached_rel_size 1928349
<pageserver::tenant::timeline::Timeline>::update_cached_rel_size 155937
pageserver::pgdatadir_mapping::tests::aux_files_round_trip 2
pageserver::pgdatadir_mapping::tests::aux_files_round_trip::{closure#0} 4

Generated by: LCOV version 2.1-beta