LCOV - code coverage report
Current view: top level - safekeeper/src - timeline.rs (source / functions) Coverage Total Hit
Test: 32f4a56327bc9da697706839ed4836b2a00a408f.info Lines: 92.3 % 568 524
Test Date: 2024-02-07 07:37:29 Functions: 85.4 % 103 88

Function Name Sort by function name Hit count Sort by function hit count
<safekeeper::timeline::PeersInfo as core::fmt::Debug>::fmt 0
::clone 0
::default 0
::fmt 0
<safekeeper::timeline::SharedState>::is_wal_backup_action_pending::{closure#0} 0
<safekeeper::timeline::SharedState>::update_status::{closure#0}::{closure#1} 0
<safekeeper::timeline::Timeline>::init_new::{closure#0}::{closure#0} 0
<safekeeper::timeline::TimelineError as core::fmt::Debug>::fmt 0
::fmt 0
::fmt 0
<utils::http::error::ApiError as core::convert::From<safekeeper::timeline::TimelineError>>::from 0
<safekeeper::timeline::Timeline>::get_cancellation_rx 1
<safekeeper::timeline::Timeline>::map_control_file::<safekeeper::patch_control_file::Response, safekeeper::patch_control_file::handle_request::{closure#0}::{closure#0}> 1
<safekeeper::timeline::Timeline>::map_control_file::<safekeeper::patch_control_file::Response, safekeeper::patch_control_file::handle_request::{closure#0}::{closure#0}>::{closure#0} 1
<safekeeper::timeline::Timeline>::recovery_needed::{closure#0}::{closure#0} 3
<safekeeper::timeline::Timeline>::recovery_needed::{closure#0}::{closure#1} 3
<safekeeper::timeline::Timeline>::recovery_needed 4
::recovery_needed 2
::recovery_needed::{closure#0} 2
<safekeeper::timeline::Timeline>::memory_dump 10
::memory_dump 5
::memory_dump::{closure#0} 5
<safekeeper::timeline::Timeline>::get_term_flush_lsn_watch_rx 18
<safekeeper::timeline::Timeline>::get_wal_seg_size 18
::get_wal_seg_size 9
::get_wal_seg_size::{closure#0} 9
<safekeeper::timeline::Timeline>::set_wal_backup_lsn 24
::set_wal_backup_lsn 12
::set_wal_backup_lsn::{closure#0} 12
<safekeeper::timeline::Timeline>::cancel 28
<safekeeper::timeline::Timeline>::cancel::{closure#0} 28
<safekeeper::timeline::Timeline>::delete 28
<safekeeper::timeline::Timeline>::delete::{closure#0} 28
safekeeper::timeline::delete_dir 56
safekeeper::timeline::delete_dir 28
safekeeper::timeline::delete_dir::{closure#0} 28
<safekeeper::timeline::Timeline>::info_for_metrics 102
::info_for_metrics 51
::info_for_metrics::{closure#0} 51
<safekeeper::timeline::SharedState>::restore 137
<safekeeper::timeline::Timeline>::load_timeline 137
<safekeeper::timeline::SharedState>::wal_backup_attend 152
<safekeeper::timeline::Timeline>::wal_backup_attend 304
::wal_backup_attend 152
::wal_backup_attend::{closure#0} 152
<safekeeper::timeline::SharedState>::create_new 479
<safekeeper::timeline::Timeline>::create_empty 479
<safekeeper::timeline::Timeline>::init_new 479
<safekeeper::timeline::Timeline>::init_new::{closure#0} 479
<safekeeper::timeline::SharedState>::get_peers 507
<safekeeper::timeline::Timeline>::get_wal_backup_lsn 538
::get_wal_backup_lsn 269
::get_wal_backup_lsn::{closure#0} 269
<safekeeper::timeline::Timeline>::bootstrap 616
<safekeeper::timeline::Timeline>::get_commit_lsn_watch_rx 759
<safekeeper::timeline::Timeline>::get_peers 1010
::get_peers 505
::get_peers::{closure#0} 505
<safekeeper::timeline::Timeline>::get_walsenders 1020
<safekeeper::timeline::Timeline>::get_flush_lsn 1070
::get_flush_lsn 535
::get_flush_lsn::{closure#0} 535
<safekeeper::timeline::SharedState>::get_peers::{closure#0} 1286
<safekeeper::timeline::SharedState>::update_status::{closure#0}::{closure#0} 1545
<safekeeper::timeline::Timeline>::get_walreceivers 2098
<safekeeper::timeline::Timeline>::maybe_persist_control_file 3546
::maybe_persist_control_file 1773
::maybe_persist_control_file::{closure#0} 1773
<safekeeper::timeline::Timeline>::remove_old_wal 3546
::remove_old_wal 1773
::remove_old_wal::{closure#0} 1773
<safekeeper::timeline::Timeline>::acquire_term 4170
::acquire_term 2085
::acquire_term::{closure#0} 2085
<safekeeper::timeline::Timeline>::get_state 5686
::get_state 2843
::get_state::{closure#0} 2843
<safekeeper::timeline::Timeline>::should_walsender_stop 6406
::should_walsender_stop 3203
::should_walsender_stop::{closure#0} 3203
<safekeeper::timeline::SharedState>::get_safekeeper_info 8012
<safekeeper::timeline::Timeline>::update_status_notify 8368
::update_status_notify 4184
::update_status_notify::{closure#0} 4184
<safekeeper::timeline::PeerInfo>::from_sk_info 10982
<safekeeper::timeline::PeersInfo>::get 10982
<safekeeper::timeline::PeersInfo>::upsert 10982
<safekeeper::timeline::PeerInfo as core::fmt::Debug>::fmt 13032
<::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::> 9
::deserialize::<&mut serde_json::de::Deserializer> 9
<::deserialize::__Field as serde::de::Deserialize>::deserialize::> 72
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str:: 72
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 633
::clone 12237
<safekeeper::timeline::PeersInfo>::get::{closure#0} 14610
<safekeeper::timeline::SharedState>::is_active 15166
<safekeeper::timeline::SharedState>::is_wal_backup_action_pending 15166
<safekeeper::timeline::Timeline>::get_safekeeper_info 16024
::get_safekeeper_info 8012
::get_safekeeper_info::{closure#0} 8012
<safekeeper::timeline::Timeline>::is_active 20496
::is_active 10248
::is_active::{closure#0} 10248
<safekeeper::timeline::Timeline>::record_safekeeper_info 21964
::record_safekeeper_info 10982
::record_safekeeper_info::{closure#0} 10982
<safekeeper::timeline::SharedState>::update_status 30332
::update_status 15166
::update_status::{closure#0} 15166
<safekeeper::timeline::Timeline>::update_status 30332
::update_status 15166
::update_status::{closure#0} 15166
<safekeeper::timeline::SharedState>::is_wal_backup_required 42805
<safekeeper::timeline::SharedState>::get_wal_seg_size 42814
<safekeeper::timeline::Timeline>::update_remote_consistent_lsn 1590848
::update_remote_consistent_lsn 795424
::update_remote_consistent_lsn::{closure#0} 795424
<safekeeper::timeline::Timeline>::process_msg 4268379
<safekeeper::timeline::Timeline>::process_msg::{closure#0} 4268379
<safekeeper::timeline::Timeline>::is_cancelled 4311587
<safekeeper::timeline::Timeline>::write_shared_state 10221970
::write_shared_state 5110985
::write_shared_state::{closure#0} 5110985

Generated by: LCOV version 2.1-beta