LCOV - code coverage report
Current view: top level - pageserver/src - virtual_file.rs (source / functions) Coverage Total Hit
Test: 53437f7e869ac68c86c7d3e4c20964c0156f158c.info Lines: 93.0 % 995 925
Test Date: 2024-09-20 16:14:12 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 3407564
as pageserver::virtual_file::MaybeFatalIo<()>>::maybe_fatal_err 66
as pageserver::virtual_file::MaybeFatalIo>::maybe_fatal_err 3407498
<pageserver::virtual_file::FileGuard as core::convert::AsRef<std::os::fd::owned::OwnedFd>>::as_ref 5707112
<pageserver::virtual_file::FileGuard as uring_common::io_fd::IoFd>::as_fd 2853553
<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>> 2853547
::with_std_file::<::metadata::{closure#0}::{closure#0}, core::result::Result> 2565
::with_std_file::<::read_at>::{closure#0}::{closure#0}, core::result::Result> 783195
::with_std_file::<::read_at::{closure#0}::{closure#0}, core::result::Result> 311727
::with_std_file::<::read_at::{closure#0}::{closure#0}, core::result::Result> 48249
::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::<::write_at::{closure#0}::{closure#0}, core::result::Result> 840856
::with_std_file::<::write_at::{closure#0}::{closure#0}, core::result::Result> 835407
<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 1184308
::find_victim_slot 592154
::find_victim_slot::{closure#0} 592154
<pageserver::virtual_file::OpenFiles>::find_victim_slot::{closure#0}::{closure#0} 577934
<pageserver::virtual_file::OpenFiles>::new 600
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_init 722811
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_total 289032
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::stable_ptr 385530
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::set_init 96344
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::stable_mut_ptr 144593
<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 as core::ops::drop::Drop>::drop::clean_slot::{closure#0} 13479
<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> 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
<pageserver::virtual_file::VirtualFile>::lock_file 11414224
::lock_file 5707112
::lock_file::{closure#0} 5707112
<pageserver::virtual_file::VirtualFile>::metadata 10260
::metadata 5130
::metadata::{closure#0} 5130
<pageserver::virtual_file::VirtualFile>::open::<&camino::Utf8Path> 6594
::open::<&camino::Utf8Path> 3450
::open::<&camino::Utf8PathBuf> 3048
::open:: 96
<pageserver::virtual_file::VirtualFile>::open::<&camino::Utf8Path>::{closure#0} 6594
::open::<&camino::Utf8Path>::{closure#0} 3450
::open::<&camino::Utf8PathBuf>::{closure#0} 3048
::open::::{closure#0} 96
<pageserver::virtual_file::VirtualFile>::open_with_options::<&camino::Utf8Path> 17517
::open_with_options::<&camino::Utf8Path> 10965
::open_with_options::<&camino::Utf8PathBuf> 6552
<pageserver::virtual_file::VirtualFile>::open_with_options::<&camino::Utf8Path>::{closure#0} 17517
::open_with_options::<&camino::Utf8Path>::{closure#0} 10965
::open_with_options::<&camino::Utf8PathBuf>::{closure#0} 6552
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>> 2286333
::read_at::> 1566584
::read_at:: 623405
::read_at:: 96344
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>>::{closure#0} 2286333
::read_at::>::{closure#0} 1566584
::read_at::::{closure#0} 623405
::read_at::::{closure#0} 96344
<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>> 2285001
::read_exact_at::> 1565252
::read_exact_at:: 623405
::read_exact_at:: 96344
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0} 2285001
::read_exact_at::>::{closure#0} 1565252
::read_exact_at::::{closure#0} 623405
::read_exact_at::::{closure#0} 96344
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 2285001
::read_exact_at::>::{closure#0}::{closure#0} 1565252
::read_exact_at::::{closure#0}::{closure#0} 623405
::read_exact_at::::{closure#0}::{closure#0} 96344
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#1} 2285001
::read_exact_at::>::{closure#0}::{closure#1} 1565252
::read_exact_at::::{closure#0}::{closure#1} 623405
::read_exact_at::::{closure#0}::{closure#1} 96344
<pageserver::virtual_file::VirtualFile>::read_exact_at_page 96344
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0} 96344
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0}::{closure#0} 96344
<pageserver::virtual_file::VirtualFile>::read_to_end 1344
::read_to_end 672
::read_to_end::{closure#0} 672
<pageserver::virtual_file::VirtualFile>::remove 612
<pageserver::virtual_file::VirtualFile>::seek 32076
::seek 16038
::seek::{closure#0} 16038
<pageserver::virtual_file::VirtualFile>::seek::{closure#0}::{closure#0} 12
<pageserver::virtual_file::VirtualFile>::sync_all 16278
::sync_all 8139
::sync_all::{closure#0} 8139
<pageserver::virtual_file::VirtualFile>::sync_data 0
::sync_data 0
::sync_data::{closure#0} 0
<pageserver::virtual_file::VirtualFile>::write::<alloc::vec::Vec<u8>> 3407486
::write::> 54954
::write:: 1681709
::write:: 1670823
<pageserver::virtual_file::VirtualFile>::write::<alloc::vec::Vec<u8>>::{closure#0} 3407486
::write::>::{closure#0} 54954
::write::::{closure#0} 1681709
::write::::{closure#0} 1670823
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>> 3407600
::write_all::> 55068
::write_all:: 1681709
::write_all:: 1670823
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>>::{closure#0} 3407600
::write_all::>::{closure#0} 55068
::write_all::::{closure#0} 1681709
::write_all::::{closure#0} 1670823
<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} 1681709
::write_all::::{closure#0}::{closure#0} 1670823
<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>> 3407498
::write_at::> 54966
::write_at:: 1681709
::write_at:: 1670823
<pageserver::virtual_file::VirtualFile>::write_at::<alloc::vec::Vec<u8>>::{closure#0} 3407498
::write_at::>::{closure#0} 54966
::write_at::::{closure#0} 1681709
::write_at::::{closure#0} 1670823
<pageserver::virtual_file::VirtualFile>::write_at_inner::<alloc::vec::Vec<u8>> 3407498
::write_at_inner::> 54966
::write_at_inner:: 1681709
::write_at_inner:: 1670823
<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} 1681709
::write_at_inner::::{closure#0} 1670823
<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 623549
pageserver::virtual_file::get_io_buffer_alignment_raw 1263130
pageserver::virtual_file::get_open_files 5739788
pageserver::virtual_file::get_open_files::{closure#0} 600
pageserver::virtual_file::init 0
pageserver::virtual_file::is_fatal_io_error 6
pageserver::virtual_file::is_zero_or_power_of_two 1263130
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}> 2285025
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>::{closure#0}> 1565252
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}> 623405
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at::{closure#0}> 96344
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} 2285025
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>::{closure#0}>::{closure#0} 1565252
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} 623405
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at::{closure#0}>::{closure#0} 96344
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