LCOV - code coverage report
Current view: top level - pageserver/src - virtual_file.rs (source / functions) Coverage Total Hit
Test: 7eb96e224e685167ad85f58f858387d8cf253f63.info Lines: 93.0 % 995 925
Test Date: 2024-09-23 21:23:07 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::OpenFiles>::new 600
pageserver::virtual_file::get_open_files::{closure#0} 600
pageserver::virtual_file::tests::test_vfile_concurrency::{closure#0}::{closure#0} 600
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_exact_at::{closure#0}::{closure#0} 606
<pageserver::virtual_file::VirtualFile>::remove 612
<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> 4371
::create::<&camino::Utf8Path> 120
::create::<&camino::Utf8PathBuf> 4251
<pageserver::virtual_file::VirtualFile>::create::<&camino::Utf8Path>::{closure#0} 4371
::create::<&camino::Utf8Path>::{closure#0} 120
::create::<&camino::Utf8PathBuf>::{closure#0} 4251
<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> 6594
::open:: 96
::open::<&camino::Utf8PathBuf> 3048
::open::<&camino::Utf8Path> 3450
<pageserver::virtual_file::VirtualFile>::open::<&camino::Utf8Path>::{closure#0} 6594
::open::::{closure#0} 96
::open::<&camino::Utf8PathBuf>::{closure#0} 3048
::open::<&camino::Utf8Path>::{closure#0} 3450
<pageserver::virtual_file::VirtualFile>::metadata 10260
::metadata 5130
::metadata::{closure#0} 5130
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::clean_slot::{closure#0} 13479
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop 15159
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::clean_slot 15159
<pageserver::virtual_file::VirtualFile>::sync_all 16278
::sync_all 8139
::sync_all::{closure#0} 8139
<pageserver::virtual_file::VirtualFile>::open_with_options::<&camino::Utf8Path> 17517
::open_with_options::<&camino::Utf8PathBuf> 6552
::open_with_options::<&camino::Utf8Path> 10965
<pageserver::virtual_file::VirtualFile>::open_with_options::<&camino::Utf8Path>::{closure#0} 17517
::open_with_options::<&camino::Utf8PathBuf>::{closure#0} 6552
::open_with_options::<&camino::Utf8Path>::{closure#0} 10965
<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 32076
::seek 16038
::seek::{closure#0} 16038
<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 96482
<pageserver::virtual_file::VirtualFile>::read_exact_at_page 96482
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0} 96482
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0}::{closure#0} 96482
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::stable_mut_ptr 144738
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_total 289446
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::stable_ptr 385958
<pageserver::virtual_file::OpenFiles>::find_victim_slot::{closure#0}::{closure#0} 567626
pageserver::virtual_file::get_io_buffer_alignment 623942
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_init 723660
<pageserver::virtual_file::OpenFiles>::find_victim_slot 1163698
::find_victim_slot 581849
::find_victim_slot::{closure#0} 581849
pageserver::virtual_file::get_io_buffer_alignment_raw 1263827
pageserver::virtual_file::is_zero_or_power_of_two 1263827
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>> 2284870
::read_exact_at:: 96482
::read_exact_at:: 623798
::read_exact_at::> 1564590
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0} 2284870
::read_exact_at::::{closure#0} 96482
::read_exact_at::::{closure#0} 623798
::read_exact_at::>::{closure#0} 1564590
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 2284870
::read_exact_at::::{closure#0}::{closure#0} 96482
::read_exact_at::::{closure#0}::{closure#0} 623798
::read_exact_at::>::{closure#0}::{closure#0} 1564590
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#1} 2284870
::read_exact_at::::{closure#0}::{closure#1} 96482
::read_exact_at::::{closure#0}::{closure#1} 623798
::read_exact_at::>::{closure#0}::{closure#1} 1564590
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}> 2284894
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}> 96482
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at::{closure#0}> 623798
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>::{closure#0}> 1564590
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} 2284894
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} 96482
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at::{closure#0}>::{closure#0} 623798
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>::{closure#0}>::{closure#0} 1564590
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>> 2286202
::read_at:: 96482
::read_at:: 623798
::read_at::> 1565922
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>>::{closure#0} 2286202
::read_at::::{closure#0} 96482
::read_at::::{closure#0} 623798
::read_at::>::{closure#0} 1565922
<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>> 2853466
::with_std_file::<::metadata::{closure#0}::{closure#0}, core::result::Result> 2565
::with_std_file::<::sync_all::{closure#0}::{closure#0}, core::result::Result<(), std::io::error::Error>> 4065
::with_std_file::<::write_at>::{closure#0}::{closure#0}, core::result::Result> 27483
::with_std_file::<::read_at::{closure#0}::{closure#0}, core::result::Result> 48256
::with_std_file::<::read_at::{closure#0}::{closure#0}, core::result::Result> 311848
::with_std_file::<::read_at>::{closure#0}::{closure#0}, core::result::Result> 782976
::with_std_file::<::write_at::{closure#0}::{closure#0}, core::result::Result> 835407
::with_std_file::<::write_at::{closure#0}::{closure#0}, core::result::Result> 840866
<pageserver::virtual_file::FileGuard as uring_common::io_fd::IoFd>::as_fd 2853503
<pageserver::virtual_file::VirtualFile>::write::<alloc::vec::Vec<u8>> 3407486
::write::> 54954
::write:: 1670823
::write:: 1681709
<pageserver::virtual_file::VirtualFile>::write::<alloc::vec::Vec<u8>>::{closure#0} 3407486
::write::>::{closure#0} 54954
::write::::{closure#0} 1670823
::write::::{closure#0} 1681709
<pageserver::virtual_file::VirtualFile>::write_at::<alloc::vec::Vec<u8>> 3407498
::write_at::> 54966
::write_at:: 1670823
::write_at:: 1681709
<pageserver::virtual_file::VirtualFile>::write_at::<alloc::vec::Vec<u8>>::{closure#0} 3407498
::write_at::>::{closure#0} 54966
::write_at::::{closure#0} 1670823
::write_at::::{closure#0} 1681709
<pageserver::virtual_file::VirtualFile>::write_at_inner::<alloc::vec::Vec<u8>> 3407498
::write_at_inner::> 54966
::write_at_inner:: 1670823
::write_at_inner:: 1681709
<pageserver::virtual_file::VirtualFile>::write_at_inner::<alloc::vec::Vec<u8>>::{closure#0} 3407498
::write_at_inner::>::{closure#0} 54966
::write_at_inner::::{closure#0} 1670823
::write_at_inner::::{closure#0} 1681709
<core::result::Result<(), std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo<()>>::maybe_fatal_err 3407564
as pageserver::virtual_file::MaybeFatalIo<()>>::maybe_fatal_err 66
as pageserver::virtual_file::MaybeFatalIo>::maybe_fatal_err 3407498
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>> 3407600
::write_all::> 55068
::write_all:: 1670823
::write_all:: 1681709
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>>::{closure#0} 3407600
::write_all::>::{closure#0} 55068
::write_all::::{closure#0} 1670823
::write_all::::{closure#0} 1681709
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 3407600
::write_all::>::{closure#0}::{closure#0} 55068
::write_all::::{closure#0}::{closure#0} 1670823
::write_all::::{closure#0}::{closure#0} 1681709
<pageserver::virtual_file::FileGuard as core::convert::AsRef<std::os::fd::owned::OwnedFd>>::as_ref 5706981
pageserver::virtual_file::get_open_files 5739657
<pageserver::virtual_file::VirtualFile>::lock_file 11413962
::lock_file 5706981
::lock_file::{closure#0} 5706981

Generated by: LCOV version 2.1-beta