LCOV - code coverage report
Current view: top level - pageserver/src - virtual_file.rs (source / functions) Coverage Total Hit
Test: 322b88762cba8ea666f63cda880cccab6936bf37.info Lines: 92.8 % 888 824
Test Date: 2024-02-29 11:57:12 Functions: 90.7 % 182 165

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::init 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::{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_with_count::{closure#0}::{closure#0} 2
pageserver::virtual_file::test_read_exact_at_impl::test_with_count::{closure#0}::{closure#0}::{closure#0} 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_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_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}::{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_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_basic 6
pageserver::virtual_file::test_read_exact_at_impl::test_basic 2
pageserver::virtual_file::test_read_exact_at_impl::test_basic::{closure#0} 4
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::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 2
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_with_count 6
pageserver::virtual_file::test_read_exact_at_impl::test_with_count 2
pageserver::virtual_file::test_read_exact_at_impl::test_with_count::{closure#0} 4
pageserver::virtual_file::tests::test_physical_files 6
pageserver::virtual_file::tests::test_physical_files 2
pageserver::virtual_file::tests::test_physical_files::{closure#0} 4
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::VirtualFile>::read_exact_at_n::<bytes::bytes_mut::BytesMut> 10
<pageserver::virtual_file::VirtualFile>::read_exact_at_n::<bytes::bytes_mut::BytesMut>::{closure#0} 10
<pageserver::virtual_file::VirtualFile>::read_exact_at_n::<bytes::bytes_mut::BytesMut>::{closure#0}::{closure#0} 10
<pageserver::virtual_file::VirtualFile>::read_exact_at_n::<bytes::bytes_mut::BytesMut>::{closure#0}::{closure#1} 10
<pageserver::virtual_file::test_read_exact_at_impl::MockReadAt as core::ops::drop::Drop>::drop 10
<pageserver::virtual_file::test_read_exact_at_impl::MockReadAt>::read_at 14
<pageserver::virtual_file::test_read_exact_at_impl::MockReadAt>::read_at::{closure#0} 14
<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
<core::result::Result<(), std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo<()>>::maybe_fatal_err 23
<pageserver::virtual_file::VirtualFile>::crashsafe_overwrite::<alloc::vec::Vec<u8>, alloc::vec::Vec<u8>> 30
<pageserver::virtual_file::VirtualFile>::crashsafe_overwrite::<alloc::vec::Vec<u8>, alloc::vec::Vec<u8>>::{closure#0} 30
<pageserver::virtual_file::VirtualFile>::crashsafe_overwrite::<alloc::vec::Vec<u8>, alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 30
<core::result::Result<(), std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo<()>>::fatal_err 36
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 0
, std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo>>::fatal_err 4
as pageserver::virtual_file::MaybeFatalIo>::fatal_err 9
as pageserver::virtual_file::MaybeFatalIo<()>>::fatal_err 10
, std::io::error::Error> as pageserver::virtual_file::MaybeFatalIo>>::fatal_err 13
<pageserver::virtual_file::tests::MaybeVirtualFile>::seek 72
::seek 36
::seek::{closure#0} 36
<pageserver::virtual_file::OpenFiles>::new 100
pageserver::virtual_file::get_open_files::{closure#0} 100
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::VirtualFile>::metadata::{closure#0}::{closure#0} 554
<pageserver::virtual_file::VirtualFile>::sync_all::{closure#0}::{closure#0} 554
<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
<pageserver::virtual_file::VirtualFile>::open 960
::open 480
::open::{closure#0} 480
<pageserver::virtual_file::VirtualFile>::create 1008
::create 504
::create::{closure#0} 504
<pageserver::virtual_file::VirtualFile>::metadata 1108
::metadata 554
::metadata::{closure#0} 554
<pageserver::virtual_file::VirtualFile>::sync_all 1108
::sync_all 554
::sync_all::{closure#0} 554
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::clean_slot::{closure#0} 1434
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop 1842
<pageserver::virtual_file::VirtualFile as core::ops::drop::Drop>::drop::clean_slot 1842
<pageserver::virtual_file::VirtualFile>::open_with_options 2110
<pageserver::virtual_file::VirtualFile>::open_with_options::{closure#0} 2110
<pageserver::virtual_file::VirtualFile>::seek 3360
::seek 1680
::seek::{closure#0} 1680
<pageserver::virtual_file::VirtualFile>::read_blk 20200
<pageserver::virtual_file::VirtualFile>::read_blk::{closure#0} 20200
<pageserver::virtual_file::VirtualFile>::write_all_at::<alloc::vec::Vec<u8>> 35260
::write_all_at::> 4
::write_all_at:: 35256
<pageserver::virtual_file::VirtualFile>::write_all_at::<alloc::vec::Vec<u8>>::{closure#0} 35260
::write_all_at::>::{closure#0} 4
::write_all_at::::{closure#0} 35256
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_total 90082
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::stable_ptr 90082
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::set_init 90082
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf_mut::IoBufMut>::stable_mut_ptr 90082
<pageserver::virtual_file::VirtualFile>::read_exact_at_page 90082
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0} 90082
<pageserver::virtual_file::VirtualFile>::read_exact_at_page::{closure#0}::{closure#0} 90082
<pageserver::virtual_file::VirtualFile>::write_at::{closure#0}::{closure#0} 103627
<pageserver::virtual_file::VirtualFile>::write 136734
::write 68367
::write::{closure#0} 68367
<pageserver::virtual_file::VirtualFile>::write_all::<alloc::vec::Vec<u8>> 136794
::write_all::> 0
::write_all::>::{closure#0} 0
::write_all::> 0
::write_all::>::{closure#0} 0
::write_all::>> 1122
::write_all::>>::{closure#0} 1122
::write_all:: 4722
::write_all::::{closure#0} 4722
::write_all:: 9305
::write_all::::{closure#0} 9305
::write_all::> 53248
::write_all::>::{closure#0} 53248
<pageserver::virtual_file::FileGuard as uring_common::io_fd::IoFd>::as_fd 155275
<pageserver::virtual_file::OpenFiles>::find_victim_slot::{closure#0}::{closure#0} 191175
<pageserver::virtual_file::VirtualFile>::write_at 207254
::write_at 103627
::write_at::{closure#0} 103627
<pageserver::virtual_file::FileGuard>::with_std_file::<<pageserver::virtual_file::VirtualFile>::sync_all::{closure#0}::{closure#0}, core::result::Result<(), std::io::error::Error>> 260198
::with_std_file::<::read_at>::{closure#0}::{closure#0}, core::result::Result> 5
::with_std_file::<::read_at>::{closure#0}::{closure#0}, core::result::Result> 222
::with_std_file::<::metadata::{closure#0}::{closure#0}, core::result::Result> 554
::with_std_file::<::sync_all::{closure#0}::{closure#0}, core::result::Result<(), std::io::error::Error>> 554
::with_std_file::<::read_at>::{closure#0}::{closure#0}, core::result::Result> 45135
::with_std_file::<::write_at::{closure#0}::{closure#0}, core::result::Result> 103627
::with_std_file::<::read_at>>::{closure#0}::{closure#0}, core::result::Result> 110101
<pageserver::virtual_file::PageWriteGuardBuf as uring_common::buf::io_buf::IoBuf>::bytes_init 270246
<pageserver::virtual_file::SlotHandle as core::fmt::Debug>::fmt 296375
::clone 0
::fmt 0
::eq 296375
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>> 310284
::read_exact_at:: 90082
::read_exact_at::> 220202
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0} 310284
::read_exact_at::::{closure#0} 90082
::read_exact_at::>::{closure#0} 220202
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#0} 310284
::read_exact_at::::{closure#0}::{closure#0} 90082
::read_exact_at::>::{closure#0}::{closure#0} 220202
<pageserver::virtual_file::VirtualFile>::read_exact_at::<alloc::vec::Vec<u8>>::{closure#0}::{closure#1} 310284
::read_exact_at::::{closure#0}::{closure#1} 90082
::read_exact_at::>::{closure#0}::{closure#1} 220202
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}> 310304
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::, pageserver::virtual_file::test_read_exact_at_impl::test_with_count::{closure#0}::{closure#0}, pageserver::virtual_file::test_read_exact_at_impl::test_with_count::{closure#0}::{closure#0}::{closure#0}> 2
pageserver::virtual_file::read_exact_at_impl::::read_exact_at_n::{closure#0}::{closure#0}, ::read_at>::{closure#0}> 10
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at>::{closure#0}> 90082
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::<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} 310304
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::, pageserver::virtual_file::test_read_exact_at_impl::test_with_count::{closure#0}::{closure#0}, pageserver::virtual_file::test_read_exact_at_impl::test_with_count::{closure#0}::{closure#0}::{closure#0}>::{closure#0} 2
pageserver::virtual_file::read_exact_at_impl::::read_exact_at_n::{closure#0}::{closure#0}, ::read_at>::{closure#0}>::{closure#0} 10
pageserver::virtual_file::read_exact_at_impl::::read_exact_at::{closure#0}::{closure#0}, ::read_at>::{closure#0}>::{closure#0} 90082
pageserver::virtual_file::read_exact_at_impl::, ::read_exact_at>::{closure#0}::{closure#0}, ::read_at>>::{closure#0}>::{closure#0} 220202
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>> 310738
::read_at::> 10
::read_at::> 444
::read_at::> 90082
::read_at::>> 220202
<pageserver::virtual_file::VirtualFile>::read_at::<alloc::vec::Vec<u8>>::{closure#0} 310738
::read_at::>::{closure#0} 10
::read_at::>::{closure#0} 444
::read_at::>::{closure#0} 90082
::read_at::>>::{closure#0} 220202
<pageserver::virtual_file::OpenFiles>::find_victim_slot 385410
::find_victim_slot 192705
::find_victim_slot::{closure#0} 192705
<pageserver::virtual_file::FileGuard as core::convert::AsRef<std::os::fd::owned::OwnedFd>>::as_ref 415477
pageserver::virtual_file::get_open_files 419429
<pageserver::virtual_file::VirtualFile>::lock_file 830954
::lock_file 415477
::lock_file::{closure#0} 415477

Generated by: LCOV version 2.1-beta