LCOV - code coverage report
Current view: top level - pageserver/src/tenant/storage_layer - layer.rs (source / functions) Coverage Total Hit
Test: 1c072cf775425a8f441e533586eea4edd880d500.info Lines: 78.4 % 1322 1036
Test Date: 2025-02-14 11:35:56 Functions: 79.3 % 145 115

Function Name Sort by function name Hit count Sort by function hit count
<pageserver::tenant::storage_layer::layer::DeleteFailed>::as_str 218
<pageserver::tenant::storage_layer::layer::DownloadError>::is_cancelled 0
<pageserver::tenant::storage_layer::layer::DownloadedLayer as core::fmt::Debug>::fmt 0
<pageserver::tenant::storage_layer::layer::DownloadedLayer as core::ops::drop::Drop>::drop 1497
<pageserver::tenant::storage_layer::layer::DownloadedLayer>::dump 16
::dump 8
::dump::{closure#0} 8
<pageserver::tenant::storage_layer::layer::DownloadedLayer>::get 556721
<pageserver::tenant::storage_layer::layer::DownloadedLayer>::get::{closure#0} 556721
<pageserver::tenant::storage_layer::layer::DownloadedLayer>::get::{closure#0}::{closure#0} 2468
<pageserver::tenant::storage_layer::layer::DownloadedLayer>::get::{closure#0}::{closure#0}::{closure#0} 2468
<pageserver::tenant::storage_layer::layer::DownloadedLayer>::get::{closure#0}::{closure#1} 0
<pageserver::tenant::storage_layer::layer::DownloadedLayer>::get_values_reconstruct_data 554633
<pageserver::tenant::storage_layer::layer::DownloadedLayer>::get_values_reconstruct_data::{closure#0} 554633
<pageserver::tenant::storage_layer::layer::EvictionCancelled>::as_str 981
<pageserver::tenant::storage_layer::layer::LastEviction>::happened_after 59
<pageserver::tenant::storage_layer::layer::Layer as core::cmp::PartialEq>::eq 7
<pageserver::tenant::storage_layer::layer::Layer as core::convert::From<pageserver::tenant::storage_layer::layer::ResidentLayer>>::from 840
<pageserver::tenant::storage_layer::layer::Layer as core::fmt::Debug>::fmt 8
<pageserver::tenant::storage_layer::layer::Layer as core::fmt::Display>::fmt 4326
<pageserver::tenant::storage_layer::layer::Layer as pageserver::tenant::storage_layer::AsLayerDesc>::layer_desc 4068465
<pageserver::tenant::storage_layer::layer::Layer>::delete_on_drop 1040
<pageserver::tenant::storage_layer::layer::Layer>::download 0
::download 0
::download::{closure#0} 0
<pageserver::tenant::storage_layer::layer::Layer>::download_and_keep_resident 2298
::download_and_keep_resident 1149
::download_and_keep_resident::{closure#0} 1149
<pageserver::tenant::storage_layer::layer::Layer>::dump 16
::dump 8
::dump::{closure#0} 8
<pageserver::tenant::storage_layer::layer::Layer>::evict_and_wait 218
::evict_and_wait 109
::evict_and_wait::{closure#0} 109
<pageserver::tenant::storage_layer::layer::Layer>::finish_creating 3629
<pageserver::tenant::storage_layer::layer::Layer>::finish_creating::{closure#0} 3629
<pageserver::tenant::storage_layer::layer::Layer>::finish_creating::{closure#1} 0
<pageserver::tenant::storage_layer::layer::Layer>::for_evicted 0
<pageserver::tenant::storage_layer::layer::Layer>::for_resident 244
<pageserver::tenant::storage_layer::layer::Layer>::for_resident::{closure#0} 244
<pageserver::tenant::storage_layer::layer::Layer>::get_timeline_id 0
<pageserver::tenant::storage_layer::layer::Layer>::get_timeline_id::{closure#0} 0
<pageserver::tenant::storage_layer::layer::Layer>::get_values_reconstruct_data 554633
<pageserver::tenant::storage_layer::layer::Layer>::get_values_reconstruct_data::{closure#0} 554633
<pageserver::tenant::storage_layer::layer::Layer>::get_values_reconstruct_data::{closure#0}::{closure#0} 0
<pageserver::tenant::storage_layer::layer::Layer>::get_values_reconstruct_data::{closure#0}::{closure#1} 0
<pageserver::tenant::storage_layer::layer::Layer>::info 0
<pageserver::tenant::storage_layer::layer::Layer>::is_likely_resident 387
<pageserver::tenant::storage_layer::layer::Layer>::is_likely_resident::{closure#0} 235
<pageserver::tenant::storage_layer::layer::Layer>::keep_resident 80
::keep_resident 40
::keep_resident::{closure#0} 40
<pageserver::tenant::storage_layer::layer::Layer>::keep_resident::{closure#0}::{closure#0} 28
<pageserver::tenant::storage_layer::layer::Layer>::last_evicted_at 59
<pageserver::tenant::storage_layer::layer::Layer>::latest_activity 73
<pageserver::tenant::storage_layer::layer::Layer>::local_path 3633
<pageserver::tenant::storage_layer::layer::Layer>::metadata 5227
<pageserver::tenant::storage_layer::layer::Layer>::needs_download 1216
::needs_download 608
::needs_download::{closure#0} 608
<pageserver::tenant::storage_layer::layer::Layer>::record_access 554633
<pageserver::tenant::storage_layer::layer::Layer>::set_visibility 690
<pageserver::tenant::storage_layer::layer::Layer>::visibility 199
<pageserver::tenant::storage_layer::layer::Layer>::wait_drop 4
<pageserver::tenant::storage_layer::layer::Layer>::wait_drop::{closure#0} 4
<pageserver::tenant::storage_layer::layer::LayerImplMetrics as core::default::Default>::default 109
<pageserver::tenant::storage_layer::layer::LayerImplMetrics as core::default::Default>::default::{closure#0} 981
<pageserver::tenant::storage_layer::layer::LayerImplMetrics as core::default::Default>::default::{closure#1} 218
<pageserver::tenant::storage_layer::layer::LayerImplMetrics as core::default::Default>::default::{closure#2} 763
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_completed_deletes 1020
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_completed_evictions 73
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_delete_removes_failed 0
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_deletes_failed 0
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_download_failed_without_requester 0
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_evicted_with_waiters 0
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_eviction_cancelled 16
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_init_cancelled 0
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_init_completed_without_requester 0
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_init_needed_no_download 12
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_permanent_loading_failures 0
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_raced_wanted_evicted_accesses 0
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_started_deletes 1032
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::inc_started_evictions 89
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::record_redownloaded_after 29
<pageserver::tenant::storage_layer::layer::LayerImplMetrics>::record_time_to_evict 73
<pageserver::tenant::storage_layer::layer::LayerInner as core::fmt::Display>::fmt 114
<pageserver::tenant::storage_layer::layer::LayerInner as core::ops::drop::Drop>::drop 1416
<pageserver::tenant::storage_layer::layer::LayerInner as core::ops::drop::Drop>::drop::{closure#0} 1024
<pageserver::tenant::storage_layer::layer::LayerInner as pageserver::tenant::storage_layer::AsLayerDesc>::layer_desc 4073699
<pageserver::tenant::storage_layer::layer::LayerInner>::check_expected_download 4
<pageserver::tenant::storage_layer::layer::LayerInner>::delete_on_drop 1040
<pageserver::tenant::storage_layer::layer::LayerInner>::download_and_init 29
<pageserver::tenant::storage_layer::layer::LayerInner>::download_and_init::{closure#0} 29
<pageserver::tenant::storage_layer::layer::LayerInner>::download_and_init::{closure#0}::{closure#0} 29
<pageserver::tenant::storage_layer::layer::LayerInner>::download_init_and_wait 29
<pageserver::tenant::storage_layer::layer::LayerInner>::download_init_and_wait::{closure#0} 29
<pageserver::tenant::storage_layer::layer::LayerInner>::download_init_and_wait::{closure#0}::{closure#0} 0
<pageserver::tenant::storage_layer::layer::LayerInner>::download_init_and_wait::{closure#0}::{closure#1} 29
<pageserver::tenant::storage_layer::layer::LayerInner>::evict_and_wait::{closure#0} 109
<pageserver::tenant::storage_layer::layer::LayerInner>::evict_blocking 73
<pageserver::tenant::storage_layer::layer::LayerInner>::get_or_maybe_download 555814
<pageserver::tenant::storage_layer::layer::LayerInner>::get_or_maybe_download::{closure#0} 555814
<pageserver::tenant::storage_layer::layer::LayerInner>::get_or_maybe_download::{closure#0}::{closure#0} 0
<pageserver::tenant::storage_layer::layer::LayerInner>::get_or_maybe_download::{closure#0}::{closure#1} 555781
<pageserver::tenant::storage_layer::layer::LayerInner>::get_or_maybe_download::{closure#0}::{closure#2} 0
<pageserver::tenant::storage_layer::layer::LayerInner>::get_or_maybe_download::{closure#0}::{closure#3} 4
<pageserver::tenant::storage_layer::layer::LayerInner>::get_or_maybe_download::{closure#0}::{closure#4} 29
<pageserver::tenant::storage_layer::layer::LayerInner>::get_or_maybe_download::{closure#0}::{closure#4}::{closure#0} 0
<pageserver::tenant::storage_layer::layer::LayerInner>::info 0
<pageserver::tenant::storage_layer::layer::LayerInner>::info::{closure#0} 0
<pageserver::tenant::storage_layer::layer::LayerInner>::initialize_after_layer_is_on_disk 41
<pageserver::tenant::storage_layer::layer::LayerInner>::is_file_present_and_good_size 901
<pageserver::tenant::storage_layer::layer::LayerInner>::metadata 6280
<pageserver::tenant::storage_layer::layer::LayerInner>::needs_download 1380
::needs_download 690
::needs_download::{closure#0} 690
<pageserver::tenant::storage_layer::layer::LayerInner>::needs_download_blocking 244
<pageserver::tenant::storage_layer::layer::LayerInner>::new 3873
<pageserver::tenant::storage_layer::layer::LayerInner>::on_downloaded_layer_drop 85
<pageserver::tenant::storage_layer::layer::LayerInner>::on_downloaded_layer_drop::{closure#0} 85
<pageserver::tenant::storage_layer::layer::LayerInner>::spawn::<tracing::instrument::Instrumented<<pageserver::tenant::storage_layer::layer::LayerInner>::on_downloaded_layer_drop::{closure#0}>> 114
::spawn::::download_init_and_wait::{closure#0}::{closure#1}>> 29
::spawn::::on_downloaded_layer_drop::{closure#0}>> 85
<pageserver::tenant::storage_layer::layer::LayerInner>::spawn_blocking::<<pageserver::tenant::storage_layer::layer::LayerInner as core::ops::drop::Drop>::drop::{closure#0}> 1097
::spawn_blocking::<::drop::{closure#0}> 1024
::spawn_blocking::<::wait_for_turn_and_evict::{closure#0}::{closure#0}> 73
<pageserver::tenant::storage_layer::layer::LayerInner>::wait_for_turn_and_evict 85
<pageserver::tenant::storage_layer::layer::LayerInner>::wait_for_turn_and_evict::{closure#0} 85
<pageserver::tenant::storage_layer::layer::LayerInner>::wait_for_turn_and_evict::{closure#0}::is_good_to_continue 166
<pageserver::tenant::storage_layer::layer::LayerInner>::wait_for_turn_and_evict::{closure#0}::{closure#0} 73
<pageserver::tenant::storage_layer::layer::NeedsDownload as core::fmt::Display>::fmt 29
<pageserver::tenant::storage_layer::layer::RareEvent>::as_str 763
<pageserver::tenant::storage_layer::layer::ResidentLayer as core::convert::AsRef<pageserver::tenant::storage_layer::layer::Layer>>::as_ref 4133
<pageserver::tenant::storage_layer::layer::ResidentLayer as core::fmt::Debug>::fmt 0
<pageserver::tenant::storage_layer::layer::ResidentLayer as core::fmt::Display>::fmt 4301
<pageserver::tenant::storage_layer::layer::ResidentLayer as pageserver::tenant::storage_layer::AsLayerDesc>::layer_desc 2383325
<pageserver::tenant::storage_layer::layer::ResidentLayer>::copy_delta_prefix 20
<pageserver::tenant::storage_layer::layer::ResidentLayer>::copy_delta_prefix::{closure#0} 20
<pageserver::tenant::storage_layer::layer::ResidentLayer>::copy_delta_prefix::{closure#0}::{closure#0} 0
<pageserver::tenant::storage_layer::layer::ResidentLayer>::drop_eviction_guard 840
<pageserver::tenant::storage_layer::layer::ResidentLayer>::filter::{closure#0} 16
<pageserver::tenant::storage_layer::layer::ResidentLayer>::get_as_delta 1908
<pageserver::tenant::storage_layer::layer::ResidentLayer>::get_as_delta::{closure#0} 1908
<pageserver::tenant::storage_layer::layer::ResidentLayer>::get_as_image 136
<pageserver::tenant::storage_layer::layer::ResidentLayer>::get_as_image::{closure#0} 136
<pageserver::tenant::storage_layer::layer::ResidentLayer>::load_keys::{closure#0} 0
<pageserver::tenant::storage_layer::layer::ResidentLayer>::load_keys::{closure#0}::{closure#0}::{closure#0} 0
<pageserver::tenant::storage_layer::layer::ResidentLayer>::local_path 3688
<pageserver::tenant::storage_layer::layer::ResidentLayer>::metadata 4394
<pageserver::tenant::storage_layer::layer::ResidentOrWantedEvicted>::downgrade 97
<pageserver::tenant::storage_layer::layer::ResidentOrWantedEvicted>::get 28
<pageserver::tenant::storage_layer::layer::ResidentOrWantedEvicted>::get_and_upgrade 555781
<pageserver::tenant::storage_layer::layer::ResidentOrWantedEvicted>::is_likely_resident 235
pageserver::tenant::storage_layer::layer::capture_mtime_and_remove 73
pageserver::tenant::storage_layer::layer::local_layer_path 3841

Generated by: LCOV version 2.1-beta