LCOV - code coverage report
Current view: top level - pageserver/src/tenant - metadata.rs (source / functions) Coverage Total Hit
Test: 53437f7e869ac68c86c7d3e4c20964c0156f158c.info Lines: 92.4 % 370 342
Test Date: 2024-09-20 16:14:12 Functions: 58.5 % 82 48

Function Name Sort by function name Hit count Sort by function hit count
<<pageserver::tenant::metadata::TimelineMetadataBodyV1 as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 6
<::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>>> 6
<<pageserver::tenant::metadata::TimelineMetadataBodyV2 as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 1494
<::deserialize::__Field as serde::de::Deserialize>::deserialize::> 546
<::deserialize::__Field as serde::de::Deserialize>::deserialize::> 42
<::deserialize::__Field as serde::de::Deserialize>::deserialize:: 42
<::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:: 630
<::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::<&mut serde_json::value::de::MapDeserializer> 6
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::> 78
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::> 6
<::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>>> 144
<<pageserver::tenant::metadata::TimelineMetadataHeader as core::convert::TryFrom<&pageserver::tenant::metadata::TimelineMetadataBodyV2>>::try_from::Crc32Sink as std::io::Write>::flush 0
<<pageserver::tenant::metadata::TimelineMetadataHeader as core::convert::TryFrom<&pageserver::tenant::metadata::TimelineMetadataBodyV2>>::try_from::Crc32Sink as std::io::Write>::write 1500
<<pageserver::tenant::metadata::TimelineMetadataHeader as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 156
<::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>>> 156
<<pageserver::tenant::metadata::modern_serde::deserializes_bytes_as_well_as_equivalent_body_v2::Wrapper as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 18
<<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<&mut serde_json::de::Deserializer> 6
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 6
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>::{closure#0} 0
<::serialize::__SerializeWith as serde::ser::Serialize>::serialize:: 6
<pageserver::tenant::metadata::Crc32CalculationFailed as core::fmt::Display>::fmt 0
::source 0
::fmt 0
<pageserver::tenant::metadata::MetadataUpdate>::new 3444
<pageserver::tenant::metadata::TimelineMetadata>::ancestor_lsn 1926
<pageserver::tenant::metadata::TimelineMetadata>::ancestor_timeline 1278
<pageserver::tenant::metadata::TimelineMetadata>::apply 3444
<pageserver::tenant::metadata::TimelineMetadata>::detach_from_ancestor 0
<pageserver::tenant::metadata::TimelineMetadata>::disk_consistent_lsn 63649
<pageserver::tenant::metadata::TimelineMetadata>::example 36
<pageserver::tenant::metadata::TimelineMetadata>::from_bytes 150
<pageserver::tenant::metadata::TimelineMetadata>::initdb_lsn 1242
<pageserver::tenant::metadata::TimelineMetadata>::latest_gc_cutoff_lsn 1242
<pageserver::tenant::metadata::TimelineMetadata>::new 1302
<pageserver::tenant::metadata::TimelineMetadata>::pg_version 1242
<pageserver::tenant::metadata::TimelineMetadata>::prev_record_lsn 1242
<pageserver::tenant::metadata::TimelineMetadata>::reparent 0
<pageserver::tenant::metadata::TimelineMetadata>::to_bytes 54
<pageserver::tenant::metadata::TimelineMetadata>::upgrade_timeline_metadata 6
<pageserver::tenant::metadata::TimelineMetadata>::with_recalculated_checksum 18
<pageserver::tenant::metadata::TimelineMetadataHeader as core::convert::TryFrom<&pageserver::tenant::metadata::TimelineMetadataBodyV2>>::try_from 108
<pageserver::tenant::metadata::modern_serde::deserialize::Visitor as serde::de::Visitor>::expecting 0
<pageserver::tenant::metadata::modern_serde::deserialize::Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer> 90
::visit_map::<&mut serde_json::value::de::MapDeserializer> 6
::visit_map::> 78
::visit_map::> 6
<pageserver::tenant::metadata::modern_serde::deserialize::Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer> 48
::visit_seq::<&mut serde_json::value::de::SeqDeserializer> 0
::visit_seq::> 42
::visit_seq::> 6
<pageserver::tenant::metadata::modern_serde::deserialize::Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>::{closure#0} 48
::visit_seq::<&mut serde_json::value::de::SeqDeserializer>::{closure#0} 0
::visit_seq::>::{closure#0} 42
::visit_seq::>::{closure#0} 6
<pageserver::tenant::metadata::tests::test_metadata_upgrade::TimelineMetadataV1>::to_bytes 6
pageserver::tenant::metadata::modern_serde::deserialize::<serde_json::value::Value> 138
pageserver::tenant::metadata::modern_serde::deserialize::<&mut serde_json::de::Deserializer> 120
pageserver::tenant::metadata::modern_serde::deserialize::<&mut serde_json::de::Deserializer> 12
pageserver::tenant::metadata::modern_serde::deserialize:: 6
pageserver::tenant::metadata::modern_serde::deserializes_bytes_as_well_as_equivalent_body_v2 6
pageserver::tenant::metadata::modern_serde::serialize::<serde_json::value::ser::Serializer> 8648
pageserver::tenant::metadata::modern_serde::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec, serde_json::ser::PrettyFormatter>> 0
pageserver::tenant::metadata::modern_serde::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 4274
pageserver::tenant::metadata::modern_serde::serialize::<&mut serde_json::ser::Serializer> 4368
pageserver::tenant::metadata::modern_serde::serialize::, serde_json::ser::CompactFormatter>> 0
pageserver::tenant::metadata::modern_serde::serialize::, serde_json::ser::PrettyFormatter>> 0
pageserver::tenant::metadata::modern_serde::serialize::> 0
pageserver::tenant::metadata::modern_serde::serialize:: 6
pageserver::tenant::metadata::tests::metadata_serializes_correctly 6
pageserver::tenant::metadata::tests::test_metadata_bincode_serde_ensure_roundtrip 6
pageserver::tenant::metadata::tests::test_metadata_upgrade 6

Generated by: LCOV version 2.1-beta