LCOV - code coverage report
Current view: top level - libs/postgres_ffi/src - xlog_utils.rs (source / functions) Coverage Total Hit
Test: 8ac049b474321fdc72ddcb56d7165153a1a900e8.info Lines: 95.4 % 304 290
Test Date: 2023-09-06 10:18:01 Functions: 74.6 % 67 50

Function Name Sort by function name Hit count Sort by function hit count
postgres_ffi::v14::xlog_utils::main 0
postgres_ffi::v14::xlog_utils::main 0
postgres_ffi::v15::xlog_utils::main 0
<postgres_ffi::v14::xlog_utils::XlLogicalMessage>::encode 5
::encode 1
::encode 4
postgres_ffi::v14::xlog_utils::encode_logical_message 5
postgres_ffi::v15::xlog_utils::encode_logical_message 1
postgres_ffi::v14::xlog_utils::encode_logical_message 4
<postgres_ffi::v14::bindings::XLogRecord>::encode 10
::encode 2
::encode 8
<postgres_ffi::v14::xlog_utils::XlLogicalMessage as serde::ser::Serialize>::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding<bincode::config::WithOtherEndian<bincode::config::DefaultOptions, bincode::config::endian::LittleEndian>, bincode::config::int::FixintEncoding>>> 10
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 1
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 1
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 4
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 4
postgres_ffi::v14::xlog_utils::find_end_of_wal 105
postgres_ffi::v15::xlog_utils::find_end_of_wal 7
postgres_ffi::v14::xlog_utils::find_end_of_wal 98
postgres_ffi::v14::xlog_utils::open_wal_segment 134
postgres_ffi::v15::xlog_utils::open_wal_segment 9
postgres_ffi::v14::xlog_utils::open_wal_segment 125
postgres_ffi::v14::xlog_utils::XLogFromFileName 256
postgres_ffi::v15::xlog_utils::XLogFromFileName 12
postgres_ffi::v14::xlog_utils::XLogFromFileName 244
<postgres_ffi::v14::bindings::XLogPageHeaderData>::encode 658
::encode 0
::encode 658
<postgres_ffi::v14::bindings::XLogPageHeaderData>::encode::{closure#0} 658
::encode::{closure#0} 0
::encode::{closure#0} 658
postgres_ffi::v14::xlog_utils::generate_pg_control 660
postgres_ffi::v15::xlog_utils::generate_pg_control 0
postgres_ffi::v14::xlog_utils::generate_pg_control 660
<postgres_ffi::v14::bindings::XLogLongPageHeaderData>::encode 661
::encode 0
::encode 661
<postgres_ffi::v14::bindings::XLogLongPageHeaderData>::encode::{closure#0} 661
::encode::{closure#0} 0
::encode::{closure#0} 661
postgres_ffi::v14::xlog_utils::generate_wal_segment 661
postgres_ffi::v15::xlog_utils::generate_wal_segment 0
postgres_ffi::v14::xlog_utils::generate_wal_segment 661
postgres_ffi::v14::xlog_utils::IsPartialXLogFileName 720
postgres_ffi::v15::xlog_utils::IsPartialXLogFileName 0
postgres_ffi::v14::xlog_utils::IsPartialXLogFileName 720
postgres_ffi::v14::xlog_utils::XLogSegNoOffsetToRecPtr 741
postgres_ffi::v15::xlog_utils::XLogSegNoOffsetToRecPtr 12
postgres_ffi::v14::xlog_utils::XLogSegNoOffsetToRecPtr 729
postgres_ffi::v14::xlog_utils::IsXLogFileName 1006
postgres_ffi::v15::xlog_utils::IsXLogFileName 27
postgres_ffi::v14::xlog_utils::IsXLogFileName 979
postgres_ffi::v14::xlog_utils::normalize_lsn 1412
postgres_ffi::v15::xlog_utils::normalize_lsn 0
postgres_ffi::v14::xlog_utils::normalize_lsn 1412
<postgres_ffi::v14::bindings::XLogLongPageHeaderData>::from_bytes::<bytes::bytes_mut::BytesMut> 1533
::from_bytes:: 2
::from_bytes:: 1531
<postgres_ffi::v14::bindings::CheckPoint>::decode 2747
::decode 1
::decode 2746
postgres_ffi::v14::xlog_utils::XLogFileName 5613
postgres_ffi::v15::xlog_utils::XLogFileName 9
postgres_ffi::v14::xlog_utils::XLogFileName 5604
postgres_ffi::v14::xlog_utils::IsXLogFileName::{closure#0} 6384
postgres_ffi::v15::xlog_utils::IsXLogFileName::{closure#0} 408
postgres_ffi::v14::xlog_utils::IsXLogFileName::{closure#0} 5976
postgres_ffi::v14::xlog_utils::XLogSegmentsPerXLogId 11482
postgres_ffi::v15::xlog_utils::XLogSegmentsPerXLogId 30
postgres_ffi::v14::xlog_utils::XLogSegmentsPerXLogId 11452
<postgres_ffi::v14::bindings::CheckPoint>::encode 29040
::encode 0
::encode 29040
postgres_ffi::v14::xlog_utils::get_current_timestamp 742245
postgres_ffi::v15::xlog_utils::get_current_timestamp 0
postgres_ffi::v14::xlog_utils::get_current_timestamp 742245
postgres_ffi::v14::xlog_utils::to_pg_timestamp 742448
postgres_ffi::v15::xlog_utils::to_pg_timestamp 0
postgres_ffi::v14::xlog_utils::to_pg_timestamp 742448
<postgres_ffi::v14::bindings::XLogPageHeaderData>::from_bytes::<bytes::bytes_mut::BytesMut> 3231357
::from_bytes:: 4114
::from_bytes:: 3227243
<postgres_ffi::v14::bindings::XLogRecord>::from_bytes::<_> 73526894
::from_bytes::<_> 0
::from_bytes::<_> 0
::from_bytes:: 73526894
<postgres_ffi::v14::bindings::CheckPoint>::update_next_xid 73551426
::update_next_xid 4
::update_next_xid 73551422
<postgres_ffi::v14::bindings::XLogRecord>::from_slice 180464954
::from_slice 42
::from_slice 180464912
<postgres_ffi::v14::bindings::XLogRecord>::is_xlog_switch_record 180464954
::is_xlog_switch_record 42
::is_xlog_switch_record 180464912

Generated by: LCOV version 2.1-beta