LCOV - code coverage report
Current view: top level - pageserver/src - virtual_file.rs (source / functions) Coverage Total Hit
Test: fc67f8dc6087a0b4f4f0bcd74f6e1dc25fab8cf3.info Lines: 93.0 % 995 925
Test Date: 2024-09-24 13:57:57 Functions: 91.2 % 204 186

Function Name Sort by function name Hit count Sort by function hit count
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::{closure#0} 0
<pageserver::virtual_file::VirtualFile>::sync_data 0
::sync_data 0
::sync_data::{closure#0} 0
pageserver::virtual_file::init 0
pageserver::virtual_file::on_fatal_io_error 0
pageserver::virtual_file::set_io_buffer_alignment 0
pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall::{closure#0}::{closure#0} 0
pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall::{closure#0}::{closure#0}::{closure#0} 0
<pageserver::virtual_file::tests::MaybeVirtualFile>::write_all::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 6
pageserver::virtual_file::is_fatal_io_error 6
pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0}::{closure#0} 6
pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0}::{closure#0}::{closure#0} 6
<pageserver::virtual_file::FileGuard>::with_std_file_mut::<<pageserver::virtual_file::VirtualFile>::seek::{closure#0}::{closure#0}, core::result::Result<u64, std::io::error::Error>> 12
<pageserver::virtual_file::VirtualFile>::seek::{closure#0}::{closure#0} 12
<pageserver::virtual_file::VirtualFile>::write_all_at::<_> 12
::write_all_at::<_> 0
::write_all_at::> 12
<pageserver::virtual_file::VirtualFile>::write_all_at::<_>::{closure#0} 12
::write_all_at::<_>::{closure#0} 0
::write_all_at::>::{closure#0} 12
<pageserver::virtual_file::VirtualFile>::write_all_at::<_>::{closure#0}::{closure#0} 12
::write_all_at::<_>::{closure#0}::{closure#0} 0
::write_all_at::>::{closure#0}::{closure#0} 12
pageserver::virtual_file::test_read_exact_at_impl::test_basic 12
pageserver::virtual_file::test_read_exact_at_impl::test_basic 6
pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0} 6
pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall 12
pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall 6
pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall::{closure#0} 6
pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full 12
pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full 6
pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full::{closure#0} 6
pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled 12
pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled 6
pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled::{closure#0} 6
pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled::{closure#0}::{closure#0} 12
pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled::{closure#0}::{closure#0}::{closure#0} 12
pageserver::virtual_file::tests::test_atomic_overwrite_basic 12
pageserver::virtual_file::tests::test_atomic_overwrite_basic 6
pageserver::virtual_file::tests::test_atomic_overwrite_basic::{closure#0} 6
pageserver::virtual_file::tests::test_atomic_overwrite_preexisting_tmp 12
pageserver::virtual_file::tests::test_atomic_overwrite_preexisting_tmp 6
pageserver::virtual_file::tests::test_atomic_overwrite_preexisting_tmp::{closure#0} 6
pageserver::virtual_file::tests::test_files::<pageserver::virtual_file::tests::test_virtual_files::{closure#0}::A> 12
pageserver::virtual_file::tests::test_files:: 6
pageserver::virtual_file::tests::test_files:: 6
pageserver::virtual_file::tests::test_files::<pageserver::virtual_file::tests::test_virtual_files::{closure#0}::A>::{closure#0} 12
pageserver::virtual_file::tests::test_files::::{closure#0} 6
pageserver::virtual_file::tests::test_files::::{closure#0} 6
pageserver::virtual_file::tests::test_physical_files 12
pageserver::virtual_file::tests::test_physical_files 6
pageserver::virtual_file::tests::test_physical_files::{closure#0} 6
pageserver::virtual_file::tests::test_vfile_concurrency 12
pageserver::virtual_file::tests::test_vfile_concurrency 6
pageserver::virtual_file::tests::test_vfile_concurrency::{closure#0} 6
pageserver::virtual_file::tests::test_virtual_files 12
pageserver::virtual_file::tests::test_virtual_files 6
pageserver::virtual_file::tests::test_virtual_files::{closure#0} 6
<pageserver::virtual_file::tests::MaybeVirtualFile as core::convert::From<pageserver::virtual_file::VirtualFile>>::from 18
pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full::{closure#0}::{closure#0} 18
pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full::{closure#0}::{closure#0}::{closure#0} 18
<pageserver::virtual_file::test_read_exact_at_impl::MockReadAt as core::ops::drop::Drop>::drop 24
<pageserver::virtual_file::tests::MaybeVirtualFile>::write_all::<alloc::vec::Vec<u8>> 24
<pageserver::virtual_file::tests::MaybeVirtualFile>::write_all::<alloc::vec::Vec<u8>>::{closure#0} 24
<pageserver::virtual_file::tests::MaybeVirtualFile>::write_all_at::<alloc::vec::Vec<u8>> 24
<pageserver::virtual_file::tests::MaybeVirtualFile>::write_all_at::<alloc::vec::Vec<u8>>::{closure#0} 24
<pageserver::virtual_file::test_read_exact_at_impl::MockReadAt>::read_at 36
<pageserver::virtual_file::test_read_exact_at_impl::MockReadAt>::read_at::{closure#0} 36
<pageserver::virtual_file::VirtualFile>::crashsafe_overwrite::<alloc::vec::Vec<u8>, alloc::vec::Vec<u8>> 84
<pageserver::virtual_file::VirtualFile>::crashsafe_overwrite::<alloc::vec::Vec<u8>, alloc::vec::Vec<u8>>::{closure#0} 84
<pageserver::virtual_file::VirtualFile>::crashsafe_overwrite::<alloc::vec::Vec<u8>, alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 84
<pageserver::virtual_file::tests::MaybeVirtualFile>::seek 216
::seek 108
::seek::{closure#0} 108
pageserver::virtual_file::tests::test_vfile_concurrency::{closure#0}::{closure#0} 600
<pageserver::virtual_file::OpenFiles>::new 606
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_exact_at::{closure#0}::{closure#0} 606
pageserver::virtual_file::get_open_files::{closure#0} 606
<pageserver::virtual_file::VirtualFile>::remove 618
<pageserver::virtual_file::tests::test_physical_files::{closure#0}::B as pageserver::virtual_file::tests::Adapter>::open 618
<pageserver::virtual_file::tests::test_physical_files::{closure#0}::B as pageserver::virtual_file::tests::Adapter>::open::{closure#0} 618
<pageserver::virtual_file::tests::test_virtual_files::{closure#0}::A as pageserver::virtual_file::tests::Adapter>::open 618
<pageserver::virtual_file::tests::test_virtual_files::{closure#0}::A as pageserver::virtual_file::tests::Adapter>::open::{closure#0} 618
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_exact_at 1212
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_exact_at::{closure#0} 1212
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_string_at 1212
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_string_at::{closure#0} 1212
<pageserver::virtual_file::VirtualFile>::read_to_end 1344
::read_to_end 672
::read_to_end::{closure#0} 672
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_string 2652
::read_string 1326
::read_string::{closure#0} 1326
<pageserver::virtual_file::VirtualFile>::create::<&camino::Utf8Path> 4377
::create::<&camino::Utf8Path> 120
::create::<&camino::Utf8PathBuf> 4257
<pageserver::virtual_file::VirtualFile>::create::<&camino::Utf8Path>::{closure#0} 4377
::create::<&camino::Utf8Path>::{closure#0} 120
::create::<&camino::Utf8PathBuf>::{closure#0} 4257
<core::result::Result<(), std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo<()>>::fatal_err 6114
, std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo>>::fatal_err 0
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 0
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 0
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 0
, std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo>>::fatal_err 12
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 24
, std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo>>::fatal_err 36
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 3006
as pageserver::virtual_file::MaybeFatalIo<()>>::fatal_err 3036
<pageserver::virtual_file::VirtualFile>::open::<&camino::Utf8Path> 6600
::open:: 96
::open::<&camino::Utf8PathBuf> 3048
::open::<&camino::Utf8Path> 3456
<pageserver::virtual_file::VirtualFile>::open::<&camino::Utf8Path>::{closure#0} 6600
::open::::{closure#0} 96
::open::<&camino::Utf8PathBuf>::{closure#0} 3048
::open::<&camino::Utf8Path>::{closure#0} 3456
<pageserver::virtual_file::VirtualFile>::metadata 10284
::metadata 5142
::metadata::{closure#0} 5142
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::clean_slot::{closure#0} 13511
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop 15191
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::clean_slot 15191
<pageserver::virtual_file::VirtualFile>::sync_all 16302
::sync_all 8151
::sync_all::{closure#0} 8151
<pageserver::virtual_file::VirtualFile>::open_with_options::<&camino::Utf8Path> 17547
::open_with_options::<&camino::Utf8PathBuf> 6570
::open_with_options::<&camino::Utf8Path> 10977
<pageserver::virtual_file::VirtualFile>::open_with_options::<&camino::Utf8Path>::{closure#0} 17547
::open_with_options::<&camino::Utf8PathBuf>::{closure#0} 6570
::open_with_options::<&camino::Utf8Path>::{closure#0} 10977
<pageserver::virtual_file::VirtualFile as pageserver::virtual_file::owned_buffers_io::write::OwnedAsyncWriter>::write_all::<bytes::bytes::Bytes> 19791
::write_all:: 0
::write_all:: 19791
<pageserver::virtual_file::VirtualFile as pageserver::virtual_file::owned_buffers_io::write::OwnedAsyncWriter>::write_all::<bytes::bytes::Bytes>::{closure#0} 19791
::write_all::::{closure#0} 0
::write_all::::{closure#0} 19791
<pageserver::virtual_file::VirtualFile as pageserver::virtual_file::owned_buffers_io::write::OwnedAsyncWriter>::write_all::<bytes::bytes::Bytes>::{closure#0}::{closure#0} 19791
::write_all::::{closure#0}::{closure#0} 0
::write_all::::{closure#0}::{closure#0} 19791
<pageserver::virtual_file::VirtualFile>::seek 32160
::seek 16080
::seek::{closure#0} 16080
<pageserver::virtual_file::VirtualFile>::read_blk 62748
<pageserver::virtual_file::VirtualFile>::read_blk::{closure#0} 62748
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::set_init 96615
<pageserver::virtual_file::VirtualFile>::read_exact_at_page 96615
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0} 96615
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0}::{closure#0} 96615
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::stable_mut_ptr 144848
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_total 289845
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::stable_ptr 386311
<pageserver::virtual_file::OpenFiles>::find_victim_slot::{closure#0}::{closure#0} 568353
pageserver::virtual_file::get_io_buffer_alignment 623596
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_init 724389
<pageserver::virtual_file::OpenFiles>::find_victim_slot 1165204
::find_victim_slot 582602
::find_victim_slot::{closure#0} 582602
pageserver::virtual_file::get_io_buffer_alignment_raw 1262579
pageserver::virtual_file::is_zero_or_power_of_two 1262579
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>> 2285078
::read_exact_at:: 96615
::read_exact_at:: 623452
::read_exact_at::> 1565011
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0} 2285078
::read_exact_at::::{closure#0} 96615
::read_exact_at::::{closure#0} 623452
::read_exact_at::>::{closure#0} 1565011
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 2285078
::read_exact_at::::{closure#0}::{closure#0} 96615
::read_exact_at::::{closure#0}::{closure#0} 623452
::read_exact_at::>::{closure#0}::{closure#0} 1565011
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#1} 2285078
::read_exact_at::::{closure#0}::{closure#1} 96615
::read_exact_at::::{closure#0}::{closure#1} 623452
::read_exact_at::>::{closure#0}::{closure#1} 1565011
pageserver::virtual_file::read_exact_at_impl::<alloc::vec::Vec<u8>, <pageserver::virtual_file::VirtualFile>::read_exact_at<alloc::vec::Vec<u8>>::{closure#0}::{closure#0}, <pageserver::virtual_file::VirtualFile>::read_at<alloc::vec::Vec<u8>>::{closure#0}> 2285102
pageserver::virtual_file::read_exact_at_impl::, pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0}::{closure#0}, pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0}::{closure#0}::{closure#0}> 6
pageserver::virtual_file::read_exact_at_impl::, pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall::{closure#0}::{closure#0}, pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall::{closure#0}::{closure#0}::{closure#0}> 6
pageserver::virtual_file::read_exact_at_impl::, pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full::{closure#0}::{closure#0}, pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full::{closure#0}::{closure#0}::{closure#0}> 6
pageserver::virtual_file::read_exact_at_impl::, pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled::{closure#0}::{closure#0}, pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled::{closure#0}::{closure#0}::{closure#0}> 6
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at::{closure#0}> 96615
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at::{closure#0}> 623452
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>::{closure#0}> 1565011
pageserver::virtual_file::read_exact_at_impl::<alloc::vec::Vec<u8>, <pageserver::virtual_file::VirtualFile>::read_exact_at<alloc::vec::Vec<u8>>::{closure#0}::{closure#0}, <pageserver::virtual_file::VirtualFile>::read_at<alloc::vec::Vec<u8>>::{closure#0}>::{closure#0} 2285102
pageserver::virtual_file::read_exact_at_impl::, pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0}::{closure#0}, pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0}::{closure#0}::{closure#0}>::{closure#0} 6
pageserver::virtual_file::read_exact_at_impl::, pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall::{closure#0}::{closure#0}, pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall::{closure#0}::{closure#0}::{closure#0}>::{closure#0} 6
pageserver::virtual_file::read_exact_at_impl::, pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full::{closure#0}::{closure#0}, pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full::{closure#0}::{closure#0}::{closure#0}>::{closure#0} 6
pageserver::virtual_file::read_exact_at_impl::, pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled::{closure#0}::{closure#0}, pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled::{closure#0}::{closure#0}::{closure#0}>::{closure#0} 6
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at::{closure#0}>::{closure#0} 96615
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at::{closure#0}>::{closure#0} 623452
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>::{closure#0}>::{closure#0} 1565011
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>> 2286410
::read_at:: 96615
::read_at:: 623452
::read_at::> 1566343
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>>::{closure#0} 2286410
::read_at::::{closure#0} 96615
::read_at::::{closure#0} 623452
::read_at::>::{closure#0} 1566343
<pageserver::virtual_file::FileGuard>::with_std_file::<<pageserver::virtual_file::io_engine::IoEngine>::sync_all::{closure#0}::{closure#0}, core::result::Result<(), std::io::error::Error>> 2853514
::with_std_file::<::metadata::{closure#0}::{closure#0}, core::result::Result> 2571
::with_std_file::<::sync_all::{closure#0}::{closure#0}, core::result::Result<(), std::io::error::Error>> 4071
::with_std_file::<::write_at>::{closure#0}::{closure#0}, core::result::Result> 27492
::with_std_file::<::read_at::{closure#0}::{closure#0}, core::result::Result> 48233
::with_std_file::<::read_at::{closure#0}::{closure#0}, core::result::Result> 311503
::with_std_file::<::read_at>::{closure#0}::{closure#0}, core::result::Result> 783345
::with_std_file::<::write_at::{closure#0}::{closure#0}, core::result::Result> 835428
::with_std_file::<::write_at::{closure#0}::{closure#0}, core::result::Result> 840871
<pageserver::virtual_file::FileGuard as uring_common::io_fd::IoFd>::as_fd 2853781
<pageserver::virtual_file::VirtualFile>::write::<alloc::vec::Vec<u8>> 3407580
::write::> 54972
::write:: 1670865
::write:: 1681743
<pageserver::virtual_file::VirtualFile>::write::<alloc::vec::Vec<u8>>::{closure#0} 3407580
::write::>::{closure#0} 54972
::write::::{closure#0} 1670865
::write::::{closure#0} 1681743
<pageserver::virtual_file::VirtualFile>::write_at::<alloc::vec::Vec<u8>> 3407592
::write_at::> 54984
::write_at:: 1670865
::write_at:: 1681743
<pageserver::virtual_file::VirtualFile>::write_at::<alloc::vec::Vec<u8>>::{closure#0} 3407592
::write_at::>::{closure#0} 54984
::write_at::::{closure#0} 1670865
::write_at::::{closure#0} 1681743
<pageserver::virtual_file::VirtualFile>::write_at_inner::<alloc::vec::Vec<u8>> 3407592
::write_at_inner::> 54984
::write_at_inner:: 1670865
::write_at_inner:: 1681743
<pageserver::virtual_file::VirtualFile>::write_at_inner::<alloc::vec::Vec<u8>>::{closure#0} 3407592
::write_at_inner::>::{closure#0} 54984
::write_at_inner::::{closure#0} 1670865
::write_at_inner::::{closure#0} 1681743
<core::result::Result<(), std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo<()>>::maybe_fatal_err 3407658
as pageserver::virtual_file::MaybeFatalIo<()>>::maybe_fatal_err 66
as pageserver::virtual_file::MaybeFatalIo>::maybe_fatal_err 3407592
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>> 3407694
::write_all::> 55086
::write_all:: 1670865
::write_all:: 1681743
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>>::{closure#0} 3407694
::write_all::>::{closure#0} 55086
::write_all::::{closure#0} 1670865
::write_all::::{closure#0} 1681743
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 3407694
::write_all::>::{closure#0}::{closure#0} 55086
::write_all::::{closure#0}::{closure#0} 1670865
::write_all::::{closure#0}::{closure#0} 1681743
<pageserver::virtual_file::FileGuard as core::convert::AsRef<std::os::fd::owned::OwnedFd>>::as_ref 5707307
pageserver::virtual_file::get_open_files 5740045
<pageserver::virtual_file::VirtualFile>::lock_file 11414614
::lock_file 5707307
::lock_file::{closure#0} 5707307

Generated by: LCOV version 2.1-beta