LCOV - code coverage report
Current view: top level - libs/pageserver_api/src - shard.rs (source / functions) Coverage Total Hit
Test: aca8877be6ceba750c1be359ed71bc1799d52b30.info Lines: 96.3 % 622 599
Test Date: 2024-02-14 18:05:35 Functions: 53.6 % 233 125

Function Name Sort by function name Hit count Sort by function hit count
<<pageserver_api::shard::ShardIndex as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::expecting 0
<<pageserver_api::shard::TenantShardId as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::expecting 0
<pageserver_api::shard::ShardIdentity>::broken 0
<pageserver_api::shard::ShardIdentity>::shard_slug 0
<pageserver_api::shard::ShardIndex>::new 0
<pageserver_api::shard::TenantShardId>::is_unsharded 1
<<pageserver_api::shard::ShardIndex as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<_> 2
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<_> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 2
<pageserver_api::shard::ShardIndex as core::convert::From<[u8; 2]>>::from 2
pageserver_api::shard::tests::murmur_hash 2
pageserver_api::shard::tests::murmur_hash::{closure#0} 2
pageserver_api::shard::tests::shard_id_split 2
pageserver_api::shard::tests::shard_id_split::{closure#0} 2
pageserver_api::shard::tests::shard_identity_validation 2
pageserver_api::shard::tests::shard_identity_validation::{closure#0} 2
pageserver_api::shard::tests::shard_index_binary_encoding 2
pageserver_api::shard::tests::shard_index_binary_encoding::{closure#0} 2
pageserver_api::shard::tests::shard_index_human_encoding 2
pageserver_api::shard::tests::shard_index_human_encoding::{closure#0} 2
pageserver_api::shard::tests::shard_mapping 2
pageserver_api::shard::tests::shard_mapping::{closure#0} 2
pageserver_api::shard::tests::tenant_shard_id_backward_compat 2
pageserver_api::shard::tests::tenant_shard_id_backward_compat::{closure#0} 2
pageserver_api::shard::tests::tenant_shard_id_binary 2
pageserver_api::shard::tests::tenant_shard_id_binary::{closure#0} 2
pageserver_api::shard::tests::tenant_shard_id_forward_compat 2
pageserver_api::shard::tests::tenant_shard_id_forward_compat::{closure#0} 2
pageserver_api::shard::tests::tenant_shard_id_legacy_binary 2
pageserver_api::shard::tests::tenant_shard_id_legacy_binary::{closure#0} 2
pageserver_api::shard::tests::tenant_shard_id_string 2
pageserver_api::shard::tests::tenant_shard_id_string::{closure#0} 2
<<pageserver_api::shard::TenantShardId as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<_> 4
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<&mut serde::de::value::SeqDeserializer, >::new>, serde_json::error::Error>> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<_> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::>>>>> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 4
<pageserver_api::shard::TenantShardId as core::convert::From<[u8; 18]>>::from 4
<pageserver_api::shard::ShardConfigError as core::fmt::Debug>::fmt 10
::fmt 0
::fmt 0
::eq 10
<pageserver_api::shard::TenantShardId>::split 18
<pageserver_api::shard::ShardIdentity>::new 82
<<pageserver_api::shard::ShardIndex as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::visit_str::<_> 104
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str::> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str:: 104
<pageserver_api::shard::ShardIndex as core::str::traits::FromStr>::from_str 106
<pageserver_api::shard::ShardIndex as serde::de::Deserialize>::deserialize::<_> 106
::deserialize::<_> 0
::deserialize::<&mut bincode::de::Deserializer, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 2
::deserialize::<&mut serde_json::de::Deserializer> 104
<pageserver_api::shard::ShardIdentity as core::fmt::Debug>::fmt 241
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> 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_map:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq:: 0
::eq 0
::fmt 0
::deserialize::<_> 0
::deserialize::> 0
::deserialize::> 0
::serialize::<_> 0
::serialize:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map:: 12
::deserialize:: 12
::clone 37
<::deserialize::__Field as serde::de::Deserialize>::deserialize:: 48
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str:: 48
::serialize:: 84
<pageserver_api::shard::ShardIndex as serde::ser::Serialize>::serialize::<_> 248
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec, serde_json::ser::PrettyFormatter>> 0
::serialize::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::, serde_json::ser::PrettyFormatter>> 0
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 2
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherTrailing, bincode::config::trailing::AllowTrailing>>> 2
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 244
<pageserver_api::shard::TenantShardId>::unsharded 696
<pageserver_api::shard::ShardIdentity>::from_params 767
<pageserver_api::shard::ShardIdentity>::unsharded 908
<pageserver_api::shard::TenantShardId as core::fmt::Debug>::fmt 1057
<pageserver_api::shard::ShardIdentity>::is_unsharded 1966
<pageserver_api::shard::ShardStripeSize as core::fmt::Debug>::fmt 3193
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
::clone 0
::deserialize::<_> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 0
::deserialize:: 0
::serialize::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 12
::deserialize:: 12
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::>>>>> 18
::deserialize::>>>>> 18
::serialize:: 84
::eq 206
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<&mut serde_json::de::Deserializer> 572
::deserialize::<&mut serde_json::de::Deserializer> 572
::fmt 841
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 858
<<pageserver_api::shard::TenantShardId as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::visit_str::<_> 5698
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str::> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str:: 5698
<pageserver_api::shard::TenantShardId as serde::de::Deserialize>::deserialize::<_> 5702
::deserialize::<_> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 2
::deserialize:: 2
::deserialize::<&mut bincode::de::Deserializer, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 4
::deserialize::> 36
::deserialize::>>>>> 2087
::deserialize::<&mut serde_json::de::Deserializer> 3571
<pageserver_api::shard::TenantShardId>::to_index 9885
<pageserver_api::shard::TenantShardId as serde::ser::Serialize>::serialize::<_> 9957
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec, serde_json::ser::PrettyFormatter>> 0
::serialize::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::, serde_json::ser::PrettyFormatter>> 0
::serialize:: 0
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 4
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherTrailing, bincode::config::trailing::AllowTrailing>>> 4
::serialize:: 4
::serialize::, serde_json::ser::CompactFormatter>> 568
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 9377
<pageserver_api::shard::ShardIndex>::get_suffix 19089
<pageserver_api::shard::ShardIndex as core::fmt::Debug>::fmt 22820
<pageserver_api::shard::TenantShardId>::tenant_range 23403
<pageserver_api::shard::ShardIndex as core::fmt::Display>::fmt 28228
<pageserver_api::shard::ShardIndex>::unsharded 56566
<pageserver_api::shard::TenantShardId as core::str::traits::FromStr>::from_str 75537
<pageserver_api::shard::TenantShardId as core::fmt::Display>::fmt 178577
<pageserver_api::shard::ShardIndex as core::cmp::Ord>::cmp 696467
::cmp 0
::partial_cmp 0
::hash::<_> 0
::eq 2506
::hash:: 9870
::clone 684091
<pageserver_api::shard::ShardIdentity>::get_shard_number 790696
<pageserver_api::shard::ShardIndex>::is_unsharded 1231643
<pageserver_api::shard::TenantShardId>::is_zero 1420433
<pageserver_api::shard::ShardSlug as core::fmt::Display>::fmt 6855421
<pageserver_api::shard::TenantShardId>::shard_slug 6855421
<pageserver_api::shard::ShardIdentity>::is_zero 13902516
pageserver_api::shard::hash_combine 19643338
pageserver_api::shard::key_to_shard_number 19885904
<pageserver_api::shard::ShardIdentity>::is_key_disposable 24820490
<pageserver_api::shard::TenantShardId as core::cmp::Ord>::cmp 34440574
::hash::<_> 0
::partial_cmp 23402
::cmp 85944
::eq 7112052
::hash:: 12966970
::clone 14252206
pageserver_api::shard::murmurhash32 39286674
<pageserver_api::shard::ShardNumber as core::cmp::Ord>::cmp 56709858
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
::clone 0
::hash::<_> 0
::deserialize::<_> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 0
::serialize::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize:: 0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 3
::fmt 7
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 12
::deserialize:: 12
::serialize:: 84
::partial_cmp 23523
::cmp 78923
::hash:: 12976840
::eq 43630454
pageserver_api::shard::key_is_shard0 63559032
<pageserver_api::shard::ShardIdentity>::is_key_local 86777850
<pageserver_api::shard::ShardIdentity>::is_broken 87568546
<pageserver_api::shard::ShardLayout as core::fmt::Debug>::fmt 87568654
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
::clone 0
::fmt 0
::deserialize::<_> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 0
::serialize::<_> 0
::serialize:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 12
::deserialize:: 12
::serialize:: 84
::eq 87568546
<pageserver_api::shard::ShardCount as core::cmp::Ord>::cmp 132599768
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
::clone 0
::hash::<_> 0
::deserialize::<_> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 0
::deserialize:: 0
::serialize::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 12
::deserialize:: 12
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::>>>>> 18
::deserialize::>>>>> 18
::serialize:: 84
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<&mut serde_json::de::Deserializer> 572
::deserialize::<&mut serde_json::de::Deserializer> 572
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 858
::fmt 1305
::cmp 49379
::eq 8523389
::hash:: 12976840
::partial_cmp 111046709

Generated by: LCOV version 2.1-beta