LCOV - code coverage report
Current view: top level - pageserver/src - virtual_file.rs (source / functions) Coverage Total Hit
Test: aca8877be6ceba750c1be359ed71bc1799d52b30.info Lines: 93.3 % 853 796
Test Date: 2024-02-14 18:05:35 Functions: 90.4 % 167 151

Function Name Sort by function name Hit count Sort by function hit count
<pageserver::virtual_file::VirtualFile as core::fmt::Debug>::fmt 0
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::{closure#0} 0
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0}::{closure#1} 0
<pageserver::virtual_file::VirtualFile>::remove 0
pageserver::virtual_file::is_fatal_io_error 0
pageserver::virtual_file::on_fatal_io_error 0
pageserver::virtual_file::on_fatal_io_error::{closure#0} 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} 2
pageserver::virtual_file::test_read_exact_at_impl::test_basic 2
pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0}::{closure#0} 2
pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0}::{closure#0}::{closure#0} 2
pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall 2
pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled 2
pageserver::virtual_file::tests::test_atomic_overwrite_basic 2
pageserver::virtual_file::tests::test_atomic_overwrite_preexisting_tmp 2
pageserver::virtual_file::tests::test_physical_files 2
pageserver::virtual_file::tests::test_vfile_concurrency 2
<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>> 4
<pageserver::virtual_file::VirtualFile>::seek::{closure#0}::{closure#0} 4
pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0} 4
pageserver::virtual_file::test_read_exact_at_impl::test_empty_buf_issues_no_syscall::{closure#0} 4
pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled::{closure#0} 4
pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled::{closure#0}::{closure#0} 4
pageserver::virtual_file::test_read_exact_at_impl::test_two_read_at_calls_needed_until_buf_filled::{closure#0}::{closure#0}::{closure#0} 4
pageserver::virtual_file::tests::test_atomic_overwrite_basic::{closure#0} 4
pageserver::virtual_file::tests::test_atomic_overwrite_preexisting_tmp::{closure#0} 4
pageserver::virtual_file::tests::test_files::<pageserver::virtual_file::tests::test_virtual_files::{closure#0}::{closure#0}, pageserver::virtual_file::tests::test_virtual_files::{closure#0}::{closure#0}::{closure#0}> 4
pageserver::virtual_file::tests::test_files:: 2
pageserver::virtual_file::tests::test_files:: 2
pageserver::virtual_file::tests::test_files::<pageserver::virtual_file::tests::test_virtual_files::{closure#0}::{closure#0}, pageserver::virtual_file::tests::test_virtual_files::{closure#0}::{closure#0}::{closure#0}>::{closure#0} 4
pageserver::virtual_file::tests::test_files::::{closure#0} 2
pageserver::virtual_file::tests::test_files::::{closure#0} 2
pageserver::virtual_file::tests::test_physical_files::{closure#0} 4
pageserver::virtual_file::tests::test_vfile_concurrency::{closure#0} 4
<pageserver::virtual_file::tests::MaybeVirtualFile as core::convert::From<pageserver::virtual_file::VirtualFile>>::from 6
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 2
pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full::{closure#0} 4
pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full::{closure#0}::{closure#0} 6
pageserver::virtual_file::test_read_exact_at_impl::test_eof_before_buffer_full::{closure#0}::{closure#0}::{closure#0} 6
pageserver::virtual_file::tests::test_virtual_files 6
pageserver::virtual_file::tests::test_virtual_files 2
pageserver::virtual_file::tests::test_virtual_files::{closure#0} 4
<pageserver::virtual_file::test_read_exact_at_impl::MockReadAt as core::ops::drop::Drop>::drop 8
<pageserver::virtual_file::test_read_exact_at_impl::MockReadAt>::read_at 12
<pageserver::virtual_file::test_read_exact_at_impl::MockReadAt>::read_at::{closure#0} 12
<pageserver::virtual_file::tests::MaybeVirtualFile>::write_all::<alloc::vec::Vec<u8>> 16
::write_all::> 8
::write_all::>::{closure#0} 8
<pageserver::virtual_file::tests::MaybeVirtualFile>::write_all_at::<alloc::vec::Vec<u8>> 16
::write_all_at::> 8
::write_all_at::>::{closure#0} 8
<pageserver::virtual_file::tests::MaybeVirtualFile>::seek 72
::seek 36
::seek::{closure#0} 36
pageserver::virtual_file::get_open_files::{closure#0} 96
<core::result::Result<(), std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo<()>>::maybe_fatal_err 115
pageserver::virtual_file::tests::test_vfile_concurrency::{closure#0}::{closure#0} 200
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_exact_at::{closure#0}::{closure#0} 202
pageserver::virtual_file::tests::test_physical_files::{closure#0}::{closure#0} 206
pageserver::virtual_file::tests::test_physical_files::{closure#0}::{closure#0}::{closure#0} 206
pageserver::virtual_file::tests::test_virtual_files::{closure#0}::{closure#0} 206
pageserver::virtual_file::tests::test_virtual_files::{closure#0}::{closure#0}::{closure#0} 206
<pageserver::virtual_file::VirtualFile>::read_to_end 448
::read_to_end 224
::read_to_end::{closure#0} 224
pageserver::virtual_file::init 625
<pageserver::virtual_file::OpenFiles>::new 721
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_exact_at 808
::read_exact_at 404
::read_exact_at::{closure#0} 404
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_string_at 808
::read_string_at 404
::read_string_at::{closure#0} 404
<pageserver::virtual_file::tests::MaybeVirtualFile>::read_string 884
::read_string 442
::read_string::{closure#0} 442
<core::result::Result<(), std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo<()>>::fatal_err 1401
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 0
, std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo>>::fatal_err 31
as pageserver::virtual_file::MaybeFatalIo<()>>::fatal_err 57
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 632
, std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo>>::fatal_err 681
<pageserver::virtual_file::VirtualFile>::crashsafe_overwrite::<alloc::vec::Vec<u8>, alloc::vec::Vec<u8>> 8859
<pageserver::virtual_file::VirtualFile>::crashsafe_overwrite::<alloc::vec::Vec<u8>, alloc::vec::Vec<u8>>::{closure#0} 8859
<pageserver::virtual_file::VirtualFile>::crashsafe_overwrite::<alloc::vec::Vec<u8>, alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 8859
<pageserver::virtual_file::VirtualFile>::read_blk 20200
<pageserver::virtual_file::VirtualFile>::read_blk::{closure#0} 20200
<pageserver::virtual_file::VirtualFile>::metadata::{closure#0}::{closure#0} 22304
<pageserver::virtual_file::VirtualFile>::sync_all::{closure#0}::{closure#0} 22304
<pageserver::virtual_file::VirtualFile>::create 31714
::create 15857
::create::{closure#0} 15857
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::clean_slot::{closure#0} 37605
<pageserver::virtual_file::VirtualFile>::metadata 44608
::metadata 22304
::metadata::{closure#0} 22304
<pageserver::virtual_file::VirtualFile>::sync_all 44608
::sync_all 22304
::sync_all::{closure#0} 22304
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop 47312
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::clean_slot 47312
<pageserver::virtual_file::VirtualFile>::open_with_options 61790
<pageserver::virtual_file::VirtualFile>::open_with_options::{closure#0} 61790
<pageserver::virtual_file::VirtualFile>::open 66820
::open 33410
::open::{closure#0} 33410
<pageserver::virtual_file::VirtualFile>::seek 133868
::seek 66934
::seek::{closure#0} 66934
<pageserver::virtual_file::FileGuard as uring_common::io_fd::IoFd>::as_fd 144711
<pageserver::virtual_file::OpenFiles>::find_victim_slot::{closure#0}::{closure#0} 216342
<pageserver::virtual_file::SlotHandle as core::fmt::Debug>::fmt 304215
::clone 0
::fmt 0
::eq 304215
<pageserver::virtual_file::OpenFiles>::find_victim_slot 518944
::find_victim_slot 259472
::find_victim_slot::{closure#0} 259472
<pageserver::virtual_file::VirtualFile>::write_all_at::<alloc::vec::Vec<u8>> 3696832
::write_all_at::> 4
::write_all_at:: 3696828
<pageserver::virtual_file::VirtualFile>::write_all_at::<alloc::vec::Vec<u8>>::{closure#0} 3696832
::write_all_at::>::{closure#0} 4
::write_all_at::::{closure#0} 3696828
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::stable_ptr 4925336
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::set_init 4925337
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::stable_mut_ptr 4925337
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_total 4925338
<pageserver::virtual_file::VirtualFile>::read_exact_at_page 4925338
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0} 4925343
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0}::{closure#0} 4925343
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>> 5145545
::read_exact_at::> 220202
::read_exact_at:: 4925343
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0} 5145545
::read_exact_at::>::{closure#0} 220202
::read_exact_at::::{closure#0} 4925343
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 5145545
::read_exact_at::>::{closure#0}::{closure#0} 220202
::read_exact_at::::{closure#0}::{closure#0} 4925343
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#1} 5145545
::read_exact_at::>::{closure#0}::{closure#1} 220202
::read_exact_at::::{closure#0}::{closure#1} 4925343
pageserver::virtual_file::read_exact_at_impl::<alloc::vec::Vec<u8>, 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}> 5145553
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}> 2
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}> 2
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}> 2
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}> 2
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>>::{closure#0}> 220202
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at>::{closure#0}> 4925343
pageserver::virtual_file::read_exact_at_impl::<alloc::vec::Vec<u8>, 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} 5145553
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} 2
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} 2
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} 2
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} 2
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>>::{closure#0}>::{closure#0} 220202
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at>::{closure#0}>::{closure#0} 4925343
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>> 5145989
::read_at::> 444
::read_at::>> 220202
::read_at::> 4925343
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>>::{closure#0} 5145989
::read_at::>::{closure#0} 444
::read_at::>>::{closure#0} 220202
::read_at::>::{closure#0} 4925343
<pageserver::virtual_file::VirtualFile>::write_at::{closure#0}::{closure#0} 8663808
<pageserver::virtual_file::VirtualFile>::write 9933950
::write 4966974
::write::{closure#0} 4966976
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>> 9934012
::write_all::> 0
::write_all::>::{closure#0} 0
::write_all::> 0
::write_all::>::{closure#0} 0
::write_all::>> 3874
::write_all::>>::{closure#0} 3874
::write_all:: 233319
::write_all::::{closure#0} 233319
::write_all:: 349714
::write_all::::{closure#0} 349714
::write_all::> 4380099
::write_all::>::{closure#0} 4380099
<pageserver::virtual_file::FileGuard>::with_std_file::<<pageserver::virtual_file::VirtualFile>::sync_all::{closure#0}::{closure#0}, core::result::Result<(), std::io::error::Error>> 13709694
::with_std_file::<::read_at>::{closure#0}::{closure#0}, core::result::Result> 222
::with_std_file::<::metadata::{closure#0}::{closure#0}, core::result::Result> 22304
::with_std_file::<::sync_all::{closure#0}::{closure#0}, core::result::Result<(), std::io::error::Error>> 22304
::with_std_file::<::read_at>>::{closure#0}::{closure#0}, core::result::Result> 110101
::with_std_file::<::read_at>::{closure#0}::{closure#0}, core::result::Result> 4890955
::with_std_file::<::write_at::{closure#0}::{closure#0}, core::result::Result> 8663808
<pageserver::virtual_file::FileGuard as core::convert::AsRef<std::os::fd::owned::OwnedFd>>::as_ref 13854401
pageserver::virtual_file::get_open_files 13963504
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_init 14776009
<pageserver::virtual_file::VirtualFile>::write_at 17327614
::write_at 8663806
::write_at::{closure#0} 8663808
<pageserver::virtual_file::VirtualFile>::lock_file 27708811
::lock_file 13854402
::lock_file::{closure#0} 13854409

Generated by: LCOV version 2.1-beta