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

Function Name Sort by function name Hit count Sort by function hit count
<core::result::Result<(), std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo<()>>::fatal_err 6114
as pageserver::virtual_file::MaybeFatalIo<()>>::fatal_err 3036
, std::io::error::Error> 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 0
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 0
, 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 0
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 24
<core::result::Result<(), std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo<()>>::maybe_fatal_err 3407304
as pageserver::virtual_file::MaybeFatalIo<()>>::maybe_fatal_err 66
as pageserver::virtual_file::MaybeFatalIo>::maybe_fatal_err 3407238
<pageserver::virtual_file::FileGuard as core::convert::AsRef<std::os::fd::owned::OwnedFd>>::as_ref 5706748
<pageserver::virtual_file::FileGuard as uring_common::io_fd::IoFd>::as_fd 2853177
<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>> 2853559
::with_std_file::<::metadata::{closure#0}::{closure#0}, core::result::Result> 2553
::with_std_file::<::read_at>::{closure#0}::{closure#0}, core::result::Result> 782967
::with_std_file::<::read_at::{closure#0}::{closure#0}, core::result::Result> 312101
::with_std_file::<::read_at::{closure#0}::{closure#0}, core::result::Result> 48274
::with_std_file::<::sync_all::{closure#0}::{closure#0}, core::result::Result<(), std::io::error::Error>> 4053
::with_std_file::<::write_at>::{closure#0}::{closure#0}, core::result::Result> 27468
::with_std_file::<::write_at::{closure#0}::{closure#0}, core::result::Result> 840787
::with_std_file::<::write_at::{closure#0}::{closure#0}, core::result::Result> 835356
<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::OpenFiles>::find_victim_slot 1160642
::find_victim_slot 580321
::find_victim_slot::{closure#0} 580321
<pageserver::virtual_file::OpenFiles>::find_victim_slot::{closure#0}::{closure#0} 566155
<pageserver::virtual_file::OpenFiles>::new 594
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_init 723816
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_total 289497
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::stable_ptr 386045
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::set_init 96499
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::stable_mut_ptr 144773
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop 15125
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::clean_slot 15125
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::clean_slot::{closure#0} 13445
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::{closure#0} 0
<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>::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::VirtualFile>::create::<&camino::Utf8Path> 4365
::create::<&camino::Utf8Path> 120
::create::<&camino::Utf8PathBuf> 4245
<pageserver::virtual_file::VirtualFile>::create::<&camino::Utf8Path>::{closure#0} 4365
::create::<&camino::Utf8Path>::{closure#0} 120
::create::<&camino::Utf8PathBuf>::{closure#0} 4245
<pageserver::virtual_file::VirtualFile>::lock_file 11413496
::lock_file 5706748
::lock_file::{closure#0} 5706748
<pageserver::virtual_file::VirtualFile>::metadata 10212
::metadata 5106
::metadata::{closure#0} 5106
<pageserver::virtual_file::VirtualFile>::open::<&camino::Utf8Path> 6576
::open::<&camino::Utf8Path> 3432
::open::<&camino::Utf8PathBuf> 3048
::open:: 96
<pageserver::virtual_file::VirtualFile>::open::<&camino::Utf8Path>::{closure#0} 6576
::open::<&camino::Utf8Path>::{closure#0} 3432
::open::<&camino::Utf8PathBuf>::{closure#0} 3048
::open::::{closure#0} 96
<pageserver::virtual_file::VirtualFile>::open_with_options::<&camino::Utf8Path> 17463
::open_with_options::<&camino::Utf8Path> 10941
::open_with_options::<&camino::Utf8PathBuf> 6522
<pageserver::virtual_file::VirtualFile>::open_with_options::<&camino::Utf8Path>::{closure#0} 17463
::open_with_options::<&camino::Utf8Path>::{closure#0} 10941
::open_with_options::<&camino::Utf8PathBuf>::{closure#0} 6522
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>> 2286277
::read_at::> 1565305
::read_at:: 624473
::read_at:: 96499
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>>::{closure#0} 2286277
::read_at::>::{closure#0} 1565305
::read_at::::{closure#0} 624473
::read_at::::{closure#0} 96499
<pageserver::virtual_file::VirtualFile>::read_blk 62748
<pageserver::virtual_file::VirtualFile>::read_blk::{closure#0} 62748
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>> 2284945
::read_exact_at::> 1563973
::read_exact_at:: 624473
::read_exact_at:: 96499
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0} 2284945
::read_exact_at::>::{closure#0} 1563973
::read_exact_at::::{closure#0} 624473
::read_exact_at::::{closure#0} 96499
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 2284945
::read_exact_at::>::{closure#0}::{closure#0} 1563973
::read_exact_at::::{closure#0}::{closure#0} 624473
::read_exact_at::::{closure#0}::{closure#0} 96499
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#1} 2284945
::read_exact_at::>::{closure#0}::{closure#1} 1563973
::read_exact_at::::{closure#0}::{closure#1} 624473
::read_exact_at::::{closure#0}::{closure#1} 96499
<pageserver::virtual_file::VirtualFile>::read_exact_at_page 96499
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0} 96499
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0}::{closure#0} 96499
<pageserver::virtual_file::VirtualFile>::read_to_end 1344
::read_to_end 672
::read_to_end::{closure#0} 672
<pageserver::virtual_file::VirtualFile>::remove 606
<pageserver::virtual_file::VirtualFile>::seek 31920
::seek 15960
::seek::{closure#0} 15960
<pageserver::virtual_file::VirtualFile>::seek::{closure#0}::{closure#0} 12
<pageserver::virtual_file::VirtualFile>::sync_all 16230
::sync_all 8115
::sync_all::{closure#0} 8115
<pageserver::virtual_file::VirtualFile>::sync_data 0
::sync_data 0
::sync_data::{closure#0} 0
<pageserver::virtual_file::VirtualFile>::write::<alloc::vec::Vec<u8>> 3407226
::write::> 54924
::write:: 1681581
::write:: 1670721
<pageserver::virtual_file::VirtualFile>::write::<alloc::vec::Vec<u8>>::{closure#0} 3407226
::write::>::{closure#0} 54924
::write::::{closure#0} 1681581
::write::::{closure#0} 1670721
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>> 3407340
::write_all::> 55038
::write_all:: 1681581
::write_all:: 1670721
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>>::{closure#0} 3407340
::write_all::>::{closure#0} 55038
::write_all::::{closure#0} 1681581
::write_all::::{closure#0} 1670721
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 3407340
::write_all::>::{closure#0}::{closure#0} 55038
::write_all::::{closure#0}::{closure#0} 1681581
::write_all::::{closure#0}::{closure#0} 1670721
<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::VirtualFile>::write_at::<alloc::vec::Vec<u8>> 3407238
::write_at::> 54936
::write_at:: 1681581
::write_at:: 1670721
<pageserver::virtual_file::VirtualFile>::write_at::<alloc::vec::Vec<u8>>::{closure#0} 3407238
::write_at::>::{closure#0} 54936
::write_at::::{closure#0} 1681581
::write_at::::{closure#0} 1670721
<pageserver::virtual_file::VirtualFile>::write_at_inner::<alloc::vec::Vec<u8>> 3407238
::write_at_inner::> 54936
::write_at_inner:: 1681581
::write_at_inner:: 1670721
<pageserver::virtual_file::VirtualFile>::write_at_inner::<alloc::vec::Vec<u8>>::{closure#0} 3407238
::write_at_inner::>::{closure#0} 54936
::write_at_inner::::{closure#0} 1681581
::write_at_inner::::{closure#0} 1670721
<pageserver::virtual_file::test_read_exact_at_impl::MockReadAt as core::ops::drop::Drop>::drop 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::tests::MaybeVirtualFile as core::convert::From<pageserver::virtual_file::VirtualFile>>::from 18
<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_exact_at::{closure#0}::{closure#0} 606
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_string 2652
::read_string 1326
::read_string::{closure#0} 1326
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_string_at 1212
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_string_at::{closure#0} 1212
<pageserver::virtual_file::tests::MaybeVirtualFile>::seek 216
::seek 108
::seek::{closure#0} 108
<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::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 6
<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::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::get_io_buffer_alignment 624617
pageserver::virtual_file::get_io_buffer_alignment_raw 1267211
pageserver::virtual_file::get_open_files 5739336
pageserver::virtual_file::get_open_files::{closure#0} 594
pageserver::virtual_file::init 0
pageserver::virtual_file::is_fatal_io_error 6
pageserver::virtual_file::is_zero_or_power_of_two 1267211
pageserver::virtual_file::on_fatal_io_error 0
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}> 2284969
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>::{closure#0}> 1563973
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}> 624473
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at::{closure#0}> 96499
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} 2284969
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>::{closure#0}>::{closure#0} 1563973
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} 624473
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at::{closure#0}>::{closure#0} 96499
pageserver::virtual_file::set_io_buffer_alignment 0
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_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::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_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::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_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::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_vfile_concurrency::{closure#0}::{closure#0} 600
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

Generated by: LCOV version 2.1-beta