LCOV - code coverage report
Current view:
top level
-
safekeeper/src
- timeline.rs
(
source
/ functions)
Coverage
Total
Hit
Test:
aca8877be6ceba750c1be359ed71bc1799d52b30.info
Lines:
92.4 %
566
523
Test Date:
2024-02-14 18:05:35
Functions:
86.4 %
103
89
Function Name
Hit count
<safekeeper::timeline::PeerInfo as core::fmt::Debug>::fmt
13299
<
::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
12522
::fmt
0
::deserialize::<&mut serde_json::de::Deserializer
>
9
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
615
<safekeeper::timeline::PeerInfo>::from_sk_info
11279
<safekeeper::timeline::PeersInfo as core::fmt::Debug>::fmt
0
::clone
0
::default
0
::fmt
0
<safekeeper::timeline::PeersInfo>::get
11279
<safekeeper::timeline::PeersInfo>::get::{closure#0}
15159
<safekeeper::timeline::PeersInfo>::upsert
11279
<safekeeper::timeline::SharedState>::create_new
480
<safekeeper::timeline::SharedState>::get_peers
509
<safekeeper::timeline::SharedState>::get_peers::{closure#0}
1283
<safekeeper::timeline::SharedState>::get_safekeeper_info
8185
<safekeeper::timeline::SharedState>::get_wal_seg_size
43576
<safekeeper::timeline::SharedState>::is_active
15456
<safekeeper::timeline::SharedState>::is_wal_backup_action_pending
15456
<safekeeper::timeline::SharedState>::is_wal_backup_action_pending::{closure#0}
0
<safekeeper::timeline::SharedState>::is_wal_backup_required
43566
<safekeeper::timeline::SharedState>::restore
134
<safekeeper::timeline::SharedState>::update_status
30912
::update_status
15456
::update_status::{closure#0}
15456
<safekeeper::timeline::SharedState>::update_status::{closure#0}::{closure#0}
1544
<safekeeper::timeline::SharedState>::update_status::{closure#0}::{closure#1}
0
<safekeeper::timeline::SharedState>::wal_backup_attend
149
<safekeeper::timeline::Timeline>::acquire_term
4348
::acquire_term
2174
::acquire_term::{closure#0}
2174
<safekeeper::timeline::Timeline>::bootstrap
614
<safekeeper::timeline::Timeline>::cancel
28
<safekeeper::timeline::Timeline>::cancel::{closure#0}
28
<safekeeper::timeline::Timeline>::create_empty
480
<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
776
<safekeeper::timeline::Timeline>::get_flush_lsn
1066
::get_flush_lsn
533
::get_flush_lsn::{closure#0}
533
<safekeeper::timeline::Timeline>::get_peers
1012
::get_peers
506
::get_peers::{closure#0}
506
<safekeeper::timeline::Timeline>::get_safekeeper_info
16370
::get_safekeeper_info
8185
::get_safekeeper_info::{closure#0}
8185
<safekeeper::timeline::Timeline>::get_state
5788
::get_state
2894
::get_state::{closure#0}
2894
<safekeeper::timeline::Timeline>::get_term_flush_lsn_watch_rx
21
<safekeeper::timeline::Timeline>::get_wal_backup_lsn
548
::get_wal_backup_lsn
274
::get_wal_backup_lsn::{closure#0}
274
<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
2093
<safekeeper::timeline::Timeline>::get_walsenders
1037
<safekeeper::timeline::Timeline>::info_for_metrics
102
::info_for_metrics
51
::info_for_metrics::{closure#0}
51
<safekeeper::timeline::Timeline>::init_new
480
<safekeeper::timeline::Timeline>::init_new::{closure#0}
480
<safekeeper::timeline::Timeline>::init_new::{closure#0}::{closure#0}
0
<safekeeper::timeline::Timeline>::is_active
20894
::is_active
10447
::is_active::{closure#0}
10447
<safekeeper::timeline::Timeline>::is_cancelled
3967565
<safekeeper::timeline::Timeline>::load_timeline
134
<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
3666
::maybe_persist_control_file
1833
::maybe_persist_control_file::{closure#0}
1833
<safekeeper::timeline::Timeline>::memory_dump
10
::memory_dump
5
::memory_dump::{closure#0}
5
<safekeeper::timeline::Timeline>::process_msg
3923233
<safekeeper::timeline::Timeline>::process_msg::{closure#0}
3923233
<safekeeper::timeline::Timeline>::record_safekeeper_info
22558
::record_safekeeper_info
11279
::record_safekeeper_info::{closure#0}
11279
<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
3666
::remove_old_wal
1833
::remove_old_wal::{closure#0}
1833
<safekeeper::timeline::Timeline>::set_wal_backup_lsn
22
::set_wal_backup_lsn
11
::set_wal_backup_lsn::{closure#0}
11
<safekeeper::timeline::Timeline>::should_walsender_stop
7094
::should_walsender_stop
3547
::should_walsender_stop::{closure#0}
3547
<safekeeper::timeline::Timeline>::update_remote_consistent_lsn
1504126
::update_remote_consistent_lsn
752063
::update_remote_consistent_lsn::{closure#0}
752063
<safekeeper::timeline::Timeline>::update_status
30912
::update_status
15456
::update_status::{closure#0}
15456
<safekeeper::timeline::Timeline>::update_status_notify
8354
::update_status_notify
4177
::update_status_notify::{closure#0}
4177
<safekeeper::timeline::Timeline>::wal_backup_attend
298
::wal_backup_attend
149
::wal_backup_attend::{closure#0}
149
<safekeeper::timeline::Timeline>::write_shared_state
9447488
::write_shared_state
4723744
::write_shared_state::{closure#0}
4723744
<safekeeper::timeline::TimelineError as core::fmt::Debug>::fmt
2
::fmt
0
::fmt
2
<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