LCOV - code coverage report
Current view: top level - safekeeper/src - timeline.rs (source / functions) Coverage Total Hit
Test: c639aa5f7ab62b43d647b10f40d15a15686ce8a9.info Lines: 92.2 % 566 522
Test Date: 2024-02-12 20:26:03 Functions: 86.4 % 103 89

Function Name Sort by function name Hit count Sort by function hit count
<safekeeper::timeline::PeerInfo as core::fmt::Debug>::fmt 13156
<::deserialize::__Field as serde::de::Deserialize>::deserialize::> 72
<::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:: 72
<::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::> 9
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::> 0
::clone 12361
::fmt 0
::deserialize::<&mut serde_json::de::Deserializer> 9
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 633
<safekeeper::timeline::PeerInfo>::from_sk_info 11104
<safekeeper::timeline::PeersInfo as core::fmt::Debug>::fmt 0
::clone 0
::default 0
::fmt 0
<safekeeper::timeline::PeersInfo>::get 11104
<safekeeper::timeline::PeersInfo>::get::{closure#0} 15189
<safekeeper::timeline::PeersInfo>::upsert 11104
<safekeeper::timeline::SharedState>::create_new 479
<safekeeper::timeline::SharedState>::get_peers 511
<safekeeper::timeline::SharedState>::get_peers::{closure#0} 1287
<safekeeper::timeline::SharedState>::get_safekeeper_info 7862
<safekeeper::timeline::SharedState>::get_wal_seg_size 43213
<safekeeper::timeline::SharedState>::is_active 15293
<safekeeper::timeline::SharedState>::is_wal_backup_action_pending 15293
<safekeeper::timeline::SharedState>::is_wal_backup_action_pending::{closure#0} 0
<safekeeper::timeline::SharedState>::is_wal_backup_required 43203
<safekeeper::timeline::SharedState>::restore 133
<safekeeper::timeline::SharedState>::update_status 30586
::update_status 15293
::update_status::{closure#0} 15293
<safekeeper::timeline::SharedState>::update_status::{closure#0}::{closure#0} 1537
<safekeeper::timeline::SharedState>::update_status::{closure#0}::{closure#1} 0
<safekeeper::timeline::SharedState>::wal_backup_attend 151
<safekeeper::timeline::Timeline>::acquire_term 4448
::acquire_term 2224
::acquire_term::{closure#0} 2224
<safekeeper::timeline::Timeline>::bootstrap 612
<safekeeper::timeline::Timeline>::cancel 28
<safekeeper::timeline::Timeline>::cancel::{closure#0} 28
<safekeeper::timeline::Timeline>::create_empty 479
<safekeeper::timeline::Timeline>::delete 28
<safekeeper::timeline::Timeline>::delete::{closure#0} 28
<safekeeper::timeline::Timeline>::get_cancellation_rx 1
<safekeeper::timeline::Timeline>::get_commit_lsn_watch_rx 747
<safekeeper::timeline::Timeline>::get_flush_lsn 1084
::get_flush_lsn 542
::get_flush_lsn::{closure#0} 542
<safekeeper::timeline::Timeline>::get_peers 1016
::get_peers 508
::get_peers::{closure#0} 508
<safekeeper::timeline::Timeline>::get_safekeeper_info 15724
::get_safekeeper_info 7862
::get_safekeeper_info::{closure#0} 7862
<safekeeper::timeline::Timeline>::get_state 5628
::get_state 2814
::get_state::{closure#0} 2814
<safekeeper::timeline::Timeline>::get_term_flush_lsn_watch_rx 19
<safekeeper::timeline::Timeline>::get_wal_backup_lsn 546
::get_wal_backup_lsn 273
::get_wal_backup_lsn::{closure#0} 273
<safekeeper::timeline::Timeline>::get_wal_seg_size 20
::get_wal_seg_size 10
::get_wal_seg_size::{closure#0} 10
<safekeeper::timeline::Timeline>::get_walreceivers 2104
<safekeeper::timeline::Timeline>::get_walsenders 1011
<safekeeper::timeline::Timeline>::info_for_metrics 102
::info_for_metrics 51
::info_for_metrics::{closure#0} 51
<safekeeper::timeline::Timeline>::init_new 479
<safekeeper::timeline::Timeline>::init_new::{closure#0} 479
<safekeeper::timeline::Timeline>::init_new::{closure#0}::{closure#0} 0
<safekeeper::timeline::Timeline>::is_active 20108
::is_active 10054
::is_active::{closure#0} 10054
<safekeeper::timeline::Timeline>::is_cancelled 4380134
<safekeeper::timeline::Timeline>::load_timeline 133
<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>::maybe_persist_control_file 3474
::maybe_persist_control_file 1737
::maybe_persist_control_file::{closure#0} 1737
<safekeeper::timeline::Timeline>::memory_dump 10
::memory_dump 5
::memory_dump::{closure#0} 5
<safekeeper::timeline::Timeline>::process_msg 4337110
<safekeeper::timeline::Timeline>::process_msg::{closure#0} 4337110
<safekeeper::timeline::Timeline>::record_safekeeper_info 22208
::record_safekeeper_info 11104
::record_safekeeper_info::{closure#0} 11104
<safekeeper::timeline::Timeline>::recovery_needed 6
::recovery_needed 3
::recovery_needed::{closure#0} 3
<safekeeper::timeline::Timeline>::recovery_needed::{closure#0}::{closure#0} 5
<safekeeper::timeline::Timeline>::recovery_needed::{closure#0}::{closure#1} 6
<safekeeper::timeline::Timeline>::remove_old_wal 3474
::remove_old_wal 1737
::remove_old_wal::{closure#0} 1737
<safekeeper::timeline::Timeline>::set_wal_backup_lsn 24
::set_wal_backup_lsn 12
::set_wal_backup_lsn::{closure#0} 12
<safekeeper::timeline::Timeline>::should_walsender_stop 6664
::should_walsender_stop 3332
::should_walsender_stop::{closure#0} 3332
<safekeeper::timeline::Timeline>::update_remote_consistent_lsn 1594514
::update_remote_consistent_lsn 797257
::update_remote_consistent_lsn::{closure#0} 797257
<safekeeper::timeline::Timeline>::update_status 30586
::update_status 15293
::update_status::{closure#0} 15293
<safekeeper::timeline::Timeline>::update_status_notify 8378
::update_status_notify 4189
::update_status_notify::{closure#0} 4189
<safekeeper::timeline::Timeline>::wal_backup_attend 302
::wal_backup_attend 151
::wal_backup_attend::{closure#0} 151
<safekeeper::timeline::Timeline>::write_shared_state 10363028
::write_shared_state 5181514
::write_shared_state::{closure#0} 5181514
<safekeeper::timeline::TimelineError as core::fmt::Debug>::fmt 1
::fmt 0
::fmt 1
<utils::http::error::ApiError as core::convert::From<safekeeper::timeline::TimelineError>>::from 0
safekeeper::timeline::delete_dir 56
safekeeper::timeline::delete_dir 28
safekeeper::timeline::delete_dir::{closure#0} 28

Generated by: LCOV version 2.1-beta