LCOV - code coverage report
Current view: top level - safekeeper/src - send_wal.rs (source / functions) Coverage Total Hit
Test: aca8877be6ceba750c1be359ed71bc1799d52b30.info Lines: 93.7 % 459 430
Test Date: 2024-02-14 18:05:35 Functions: 45.9 % 159 73

Function Name Sort by function name Hit count Sort by function hit count
<safekeeper::handler::SafekeeperPostgresHandler>::handle_start_replication_guts::<_>::{closure#0}::{closure#0} 0
::handle_start_replication_guts::<_>::{closure#0}::{closure#0} 0
::handle_start_replication_guts::>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>::{closure#0}::{closure#0} 0
<safekeeper::send_wal::ReplyReader<_>>::handle_feedback::{closure#0}::{closure#0} 0
>::handle_feedback::{closure#0}::{closure#0} 0
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::handle_feedback::{closure#0}::{closure#0} 0
<safekeeper::send_wal::ReplyReader<_>>::handle_feedback::{closure#0}::{closure#1} 0
>::handle_feedback::{closure#0}::{closure#1} 0
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::handle_feedback::{closure#0}::{closure#1} 0
<safekeeper::send_wal::WalSender<_>>::run::{closure#0}::{closure#0}::{closure#0} 0
>::run::{closure#0}::{closure#0}::{closure#0} 0
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::run::{closure#0}::{closure#0}::{closure#0} 0
<safekeeper::send_wal::WalSender<_>>::run::{closure#0}::{closure#1} 0
>::run::{closure#0}::{closure#1} 0
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::run::{closure#0}::{closure#1} 0
<safekeeper::send_wal::WalSender<_>>::wait_wal::{closure#0}::{closure#0} 0
>::wait_wal::{closure#0}::{closure#0} 0
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::wait_wal::{closure#0}::{closure#0} 0
<safekeeper::send_wal::WalSender<_>>::wait_wal::{closure#0}::{closure#1} 0
>::wait_wal::{closure#0}::{closure#1} 0
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::wait_wal::{closure#0}::{closure#1} 0
<safekeeper::send_wal::WalSenders>::record_hs_feedback 2
safekeeper::send_wal::tests::test_hs_feedback 2
safekeeper::send_wal::tests::test_hs_feedback::{closure#0} 2
safekeeper::send_wal::tests::test_hs_feedback_no_valid 2
safekeeper::send_wal::tests::test_hs_feedback_no_valid::{closure#0} 2
safekeeper::send_wal::tests::test_ps_feedback 2
safekeeper::send_wal::tests::test_ps_feedback::{closure#0} 2
<safekeeper::send_wal::StandbyFeedback as core::fmt::Debug>::fmt 3
<::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
::clone 0
::fmt 0
::deserialize::<&mut serde_json::de::Deserializer> 0
::serialize::<&mut serde_json::ser::Serializer<&mut utils::http::endpoint::ChannelWriter>> 0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 3
safekeeper::send_wal::tests::ps_feedback 4
<safekeeper::send_wal::StandbyReply>::empty 8
safekeeper::send_wal::tests::hs_feedback 8
<safekeeper::send_wal::HotStandbyFeedback as core::fmt::Debug>::fmt 10
<::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
::clone 0
::fmt 0
::deserialize::<&mut serde_json::de::Deserializer> 0
::deserialize::> 0
::serialize::<&mut serde_json::ser::Serializer<&mut utils::http::endpoint::ChannelWriter>> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::> 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>>> 2
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 2
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 6
<safekeeper::handler::SafekeeperPostgresHandler>::handle_start_replication_guts::<_>::{closure#0}::{closure#1} 12
::handle_start_replication_guts::<_>::{closure#0}::{closure#1} 0
::handle_start_replication_guts::>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>::{closure#0}::{closure#1} 12
safekeeper::send_wal::tests::mock_addr 12
safekeeper::send_wal::tests::mock_ttid 12
safekeeper::send_wal::tests::push_feedback 12
<safekeeper::send_wal::WalSenders>::get_ps_feedback 51
<safekeeper::send_wal::ReplicationFeedback as core::fmt::Debug>::fmt 164
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 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_enum::> 0
::fmt 0
::deserialize::> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::> 0
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<&mut serde_json::de::Deserializer> 2
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str:: 2
<::deserialize::__Visitor as serde::de::Visitor>::visit_enum::> 2
::deserialize::<&mut serde_json::de::Deserializer> 2
::serialize::<&mut serde_json::ser::Serializer<&mut utils::http::endpoint::ChannelWriter>> 4
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 74
::clone 78
<safekeeper::send_wal::WalSenderState as core::fmt::Debug>::fmt 180
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 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_seq::> 0
::fmt 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::> 2
::deserialize::<&mut serde_json::de::Deserializer> 2
::serialize::<&mut serde_json::ser::Serializer<&mut utils::http::endpoint::ChannelWriter>> 4
<::deserialize::__Field as serde::de::Deserialize>::deserialize::> 10
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str:: 10
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 74
::clone 78
<safekeeper::send_wal::WalSenders>::get_all 255
<safekeeper::send_wal::WalSenderGuard as core::ops::drop::Drop>::drop 423
<safekeeper::send_wal::WalSenders>::unregister 423
<safekeeper::send_wal::WalSendersShared>::update_hs_feedback 429
<safekeeper::send_wal::WalSenders>::register::{closure#0} 452
<safekeeper::send_wal::WalSenders>::new 614
<safekeeper::send_wal::WalSendersShared>::new 620
<safekeeper::handler::SafekeeperPostgresHandler>::handle_start_replication::<_> 787
::handle_start_replication::<_> 0
::handle_start_replication::>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>> 787
<safekeeper::handler::SafekeeperPostgresHandler>::handle_start_replication::<_>::{closure#0} 787
::handle_start_replication::<_>::{closure#0} 0
::handle_start_replication::>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>::{closure#0} 787
<safekeeper::handler::SafekeeperPostgresHandler>::handle_start_replication_guts::<_> 787
::handle_start_replication_guts::<_> 0
::handle_start_replication_guts::>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>> 787
<safekeeper::handler::SafekeeperPostgresHandler>::handle_start_replication_guts::<_>::{closure#0} 787
::handle_start_replication_guts::<_>::{closure#0} 0
::handle_start_replication_guts::>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>::{closure#0} 787
<safekeeper::handler::SafekeeperPostgresHandler>::handle_start_replication_guts::<_>::{closure#0}::{closure#2} 787
::handle_start_replication_guts::<_>::{closure#0}::{closure#2} 0
::handle_start_replication_guts::>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>::{closure#0}::{closure#2} 787
<safekeeper::send_wal::WalSenders>::register 787
<safekeeper::send_wal::WalSenders>::record_standby_reply 1189
<safekeeper::send_wal::ReplyReader<_>>::run 1574
>::run 0
>::run::{closure#0} 0
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::run 787
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::run::{closure#0} 787
<safekeeper::send_wal::WalSender<_>>::run 1574
>::run 0
>::run::{closure#0} 0
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::run 787
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::run::{closure#0} 787
<safekeeper::send_wal::StandbyReply as core::fmt::Debug>::fmt 2381
<::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
::clone 0
::fmt 0
::deserialize::<&mut serde_json::de::Deserializer> 0
::deserialize::> 0
::serialize::<&mut serde_json::ser::Serializer<&mut utils::http::endpoint::ChannelWriter>> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::> 0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 3
<::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>>> 1189
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 1189
<safekeeper::send_wal::WalSenders>::get_ws_remote_consistent_lsn 3547
<safekeeper::send_wal::WalSendersShared>::get_slot 3547
safekeeper::send_wal::wait_for_lsn 659083
safekeeper::send_wal::wait_for_lsn::{closure#0} 659083
safekeeper::send_wal::wait_for_lsn::{closure#0}::{closure#0} 659083
<safekeeper::send_wal::WalSenders>::record_ps_feedback 752063
<safekeeper::send_wal::WalSendersShared>::update_ps_feedback 752065
<safekeeper::send_wal::WalSendersShared>::get_slot_mut 753254
<safekeeper::send_wal::WalSendersShared>::update_ps_feedback::{closure#0} 1120121
<safekeeper::send_wal::ReplyReader<_>>::handle_feedback 1506508
>::handle_feedback 0
>::handle_feedback::{closure#0} 0
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::handle_feedback 753254
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::handle_feedback::{closure#0} 753254
<safekeeper::send_wal::WalSender<_>>::wait_wal 1510744
>::wait_wal 0
>::wait_wal::{closure#0} 0
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::wait_wal 755372
>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>>::wait_wal::{closure#0} 755372
<safekeeper::send_wal::WalSenders>::get_feedbacks 1521032
<safekeeper::send_wal::HotStandbyFeedback>::empty 1539733
<safekeeper::handler::SafekeeperPostgresHandler>::handle_start_replication_guts::<_>::{closure#0}::{closure#3} 2933910
::handle_start_replication_guts::<_>::{closure#0}::{closure#3} 0
::handle_start_replication_guts::>, safekeeper::wal_service::handle_socket::{closure#0}::{closure#0}, safekeeper::wal_service::handle_socket::{closure#0}::{closure#1}>>::{closure#0}::{closure#3} 2933910
<safekeeper::send_wal::EndWatch>::get 3108094
<safekeeper::send_wal::EndWatch>::changed 3387206
::changed 1693603
::changed::{closure#0} 1693603

Generated by: LCOV version 2.1-beta