LCOV - code coverage report
Current view: top level - pageserver/src - page_cache.rs (source / functions) Coverage Total Hit
Test: 4f58e98c51285c7fa348e0b410c88a10caf68ad2.info Lines: 86.9 % 298 259
Test Date: 2025-01-07 20:58:07 Functions: 94.3 % 35 33

Function Name Sort by function name Hit count Sort by function hit count
<pageserver::page_cache::PageReadGuard as core::convert::AsRef<[u8; 8192]>>::as_ref 0
pageserver::page_cache::init 0
<pageserver::page_cache::PageCache>::new 92
pageserver::page_cache::get::{closure#0} 92
<prometheus::gauge::GenericGauge<prometheus::atomic64::AtomicU64> as pageserver::page_cache::PageSzBytesMetric>::set_page_sz 184
pageserver::page_cache::next_file_id 2508
<pageserver::page_cache::PageCache>::new::{closure#0} 4600
<pageserver::page_cache::PageCache>::remove_mapping 30527
<prometheus::gauge::GenericGauge<prometheus::atomic64::AtomicU64> as pageserver::page_cache::PageSzBytesMetric>::sub_page_sz 30527
<pageserver::page_cache::PageCache>::find_victim 32163
<pageserver::page_cache::PageCache>::find_victim::{closure#0} 32163
<pageserver::page_cache::PageCache>::try_insert_mapping 32163
<pageserver::page_cache::PageWriteGuard as core::ops::drop::Drop>::drop 32163
<pageserver::page_cache::PageWriteGuard>::mark_valid 32163
<pageserver::page_cache::Slot>::set_usage_count 32163
<prometheus::gauge::GenericGauge<prometheus::atomic64::AtomicU64> as pageserver::page_cache::PageSzBytesMetric>::add_page_sz 32163
<pageserver::page_cache::PageWriteGuard as core::ops::deref::DerefMut>::deref_mut 48292
pageserver::page_cache::count_times_page_sz 62874
<pageserver::page_cache::Slot>::dec_usage_count 86071
<pageserver::page_cache::Slot>::dec_usage_count::{closure#0} 86071
<pageserver::page_cache::Slot>::inc_usage_count 456378
<pageserver::page_cache::Slot>::inc_usage_count::{closure#0} 456378
<pageserver::page_cache::SlotInner>::coalesce_readers_permit 456378
<pageserver::page_cache::PageCache>::lock_for_read 488541
<pageserver::page_cache::PageCache>::lock_for_read::{closure#0} 488541
<pageserver::page_cache::PageCache>::read_immutable_buf 488541
<pageserver::page_cache::PageCache>::read_immutable_buf::{closure#0} 488541
<pageserver::page_cache::PageCache>::search_mapping 488541
<pageserver::page_cache::PageCache>::try_lock_for_read 488541
<pageserver::page_cache::PageCache>::try_lock_for_read::{closure#0} 488541
pageserver::page_cache::get 488541
<pageserver::page_cache::PageReadGuard as core::ops::deref::Deref>::deref 488621
<pageserver::page_cache::PageWriteGuard as core::ops::deref::Deref>::deref 530927
<pageserver::page_cache::PageCache>::try_get_pinned_slot_permit 977082
::try_get_pinned_slot_permit 488541
::try_get_pinned_slot_permit::{closure#0} 488541

Generated by: LCOV version 2.1-beta