LCOV - code coverage report
Current view: top level - pageserver/src - metrics.rs (source / functions) Coverage Total Hit
Test: a43a77853355b937a79c57b07a8f05607cf29e6c.info Lines: 73.2 % 2268 1661
Test Date: 2024-09-19 12:04:32 Functions: 65.4 % 260 170

Function Name Sort by function name Hit count Sort by function hit count
<&pageserver::metrics::tenant_throttling::TimelineGet as pageserver::tenant::throttle::Metric>::observe_throttling 0
<&str as core::convert::From<pageserver::metrics::ComputeCommandKind>>::from 0
<&str as core::convert::From<&pageserver::metrics::ComputeCommandKind>>::from 0
<&str as core::convert::From>::from 0
<&str as core::convert::From<pageserver::metrics::PageCacheErrorKind>>::from 0
<&str as core::convert::From<&pageserver::metrics::PageCacheErrorKind>>::from 0
<&str as core::convert::From>::from 0
<pageserver::metrics::BasebackupQueryTime>::start_recording 0
<pageserver::metrics::BasebackupQueryTime>::start_recording::LOGGED::{closure#0} 0
<pageserver::metrics::BasebackupQueryTime>::start_recording::{closure#0} 0
<pageserver::metrics::BasebackupQueryTimeOngoingRecording>::observe::<(), postgres_backend::QueryError> 0
<pageserver::metrics::BasebackupQueryTimeOngoingRecording>::observe::<(), postgres_backend::QueryError>::{closure#0} 0
<pageserver::metrics::BasebackupQueryTimeOngoingRecording>::observe::LOGGED::{closure#0} 0
<pageserver::metrics::ComputeCommandCounters>::for_command 0
<pageserver::metrics::GlobalAndPerTimelineHistogramTimer as core::ops::drop::Drop>::drop::LOGGED::{closure#0} 0
<pageserver::metrics::GlobalAndPerTimelineHistogramTimer as core::ops::drop::Drop>::drop::LOGGED::{closure#0}::{closure#0} 0
<pageserver::metrics::GlobalAndPerTimelineHistogramTimer as core::ops::drop::Drop>::drop::{closure#0} 0
<pageserver::metrics::ScanLatencyOngoingRecording>::observe 0
<pageserver::metrics::ScanLatencyOngoingRecording>::observe::LOGGED::{closure#0} 0
<pageserver::metrics::ScanLatencyOngoingRecording>::observe::{closure#0} 0
<pageserver::metrics::ScanLatencyOngoingRecording>::start_recording 0
<pageserver::metrics::SmgrQueryTimePerTimeline>::start_timer::LOGGED::{closure#0} 0
<pageserver::metrics::SmgrQueryTimePerTimeline>::start_timer::LOGGED::{closure#0}::{closure#0} 0
<pageserver::metrics::SmgrQueryTimePerTimeline>::start_timer::{closure#0} 0
<pageserver::metrics::TenantManagerMetrics>::slots_total 0
<pageserver::metrics::TimelineMetrics>::new::{closure#0} 0
<pageserver::metrics::disk_usage_based_eviction::Metrics as core::default::Default>::default 0
<pageserver::metrics::initial_logical_size::StartCalculation>::retry 0
<pageserver::metrics::tokio_epoll_uring::Collector as prometheus::metrics::Collector>::collect 0
<pageserver::metrics::tokio_epoll_uring::Collector as prometheus::metrics::Collector>::desc 0
<pageserver::metrics::tokio_epoll_uring::Collector>::new 0
pageserver::metrics::BACKGROUND_LOOP_PERIOD_OVERRUN_COUNT::{closure#0} 0
pageserver::metrics::BASEBACKUP_QUERY_TIME::{closure#0} 0
pageserver::metrics::CIRCUIT_BREAKERS_BROKEN::{closure#0} 0
pageserver::metrics::CIRCUIT_BREAKERS_UNBROKEN::{closure#0} 0
pageserver::metrics::COMPUTE_COMMANDS_COUNTERS::{closure#0} 0
pageserver::metrics::COMPUTE_COMMANDS_COUNTERS::{closure#0}::{closure#0} 0
pageserver::metrics::COMPUTE_STARTUP_BUCKETS::{closure#0} 0
pageserver::metrics::COMPUTE_STARTUP_BUCKETS::{closure#0}::{closure#0} 0
pageserver::metrics::DIRECTORY_ENTRIES_COUNT::{closure#0} 0
pageserver::metrics::EVICTION_ITERATION_DURATION::{closure#0} 0
pageserver::metrics::LIVE_CONNECTIONS::{closure#0} 0
pageserver::metrics::NODE_UTILIZATION_SCORE::{closure#0} 0
pageserver::metrics::PAGE_CACHE_ERRORS::{closure#0} 0
pageserver::metrics::READ_NUM_LAYERS_VISITED::{closure#0} 0
pageserver::metrics::SECONDARY_HEATMAP_TOTAL_SIZE::{closure#0} 0
pageserver::metrics::SECONDARY_MODE::{closure#0} 0
pageserver::metrics::SECONDARY_RESIDENT_PHYSICAL_SIZE::{closure#0} 0
pageserver::metrics::STARTUP_DURATION::{closure#0} 0
pageserver::metrics::STARTUP_IS_LOADING::{closure#0} 0
pageserver::metrics::TENANT::{closure#0} 0
pageserver::metrics::TENANT_TASK_EVENTS::{closure#0} 0
pageserver::metrics::UNEXPECTED_ONDEMAND_DOWNLOADS::{closure#0} 0
pageserver::metrics::WALRECEIVER_ACTIVE_MANAGERS::{closure#0} 0
pageserver::metrics::WALRECEIVER_BROKER_UPDATES::{closure#0} 0
pageserver::metrics::WALRECEIVER_CANDIDATES_ADDED::{closure#0} 0
pageserver::metrics::WALRECEIVER_STARTED_CONNECTIONS::{closure#0} 0
pageserver::metrics::WALRECEIVER_SWITCHES::{closure#0} 0
pageserver::metrics::initial_logical_size::TIMELINES_WHERE_WALRECEIVER_GOT_APPROXIMATE_SIZE::{closure#0} 0
pageserver::metrics::page_cache_errors_inc 0
pageserver::metrics::preinitialize_metrics 0
pageserver::metrics::preinitialize_metrics::{closure#0} 0
pageserver::metrics::preinitialize_metrics::{closure#1} 0
pageserver::metrics::preinitialize_metrics::{closure#2} 0
pageserver::metrics::tokio_epoll_uring::THREAD_LOCAL_LAUNCH_FAILURES::{closure#0} 0
pageserver::metrics::virtual_file_descriptor_cache::SIZE_MAX::{closure#0} 0
pageserver::metrics::virtual_file_io_engine::KIND::{closure#0} 0
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::get 6
<pageserver::metrics::TenantManagerMetrics>::slot_inserted 6
<pageserver::metrics::TenantManagerMetrics>::slot_removed 6
pageserver::metrics::TENANT_MANAGER::{closure#0} 6
pageserver::metrics::WALRECEIVER_CANDIDATES_EVENTS::{closure#0} 6
pageserver::metrics::WALRECEIVER_CANDIDATES_REMOVED::{closure#0} 6
pageserver::metrics::WAL_INGEST::{closure#0} 6
pageserver::metrics::smgr_query_time_tests::basic 6
pageserver::metrics::smgr_query_time_tests::op_label_name 6
<pageserver::metrics::EvictionsWithLowResidenceDuration>::observe 12
pageserver::metrics::REMOTE_ONDEMAND_DOWNLOADED_BYTES::{closure#0} 12
pageserver::metrics::REMOTE_ONDEMAND_DOWNLOADED_LAYERS::{closure#0} 12
<pageserver::metrics::RemoteTimelineClientMetrics>::get_bytes_finished_counter_value 18
<pageserver::metrics::RemoteTimelineClientMetrics>::get_bytes_finished_counter_value::{closure#0} 18
<pageserver::metrics::RemoteTimelineClientMetrics>::get_bytes_started_counter_value 18
<pageserver::metrics::RemoteTimelineClientMetrics>::get_bytes_started_counter_value::{closure#0} 18
<pageserver::metrics::WalRedoProcessCounters as core::default::Default>::default 18
<pageserver::metrics::initial_logical_size::FinishedCalculationGuard as core::ops::drop::Drop>::drop 18
pageserver::metrics::TENANT_SYNTHETIC_SIZE_METRIC::{closure#0} 18
pageserver::metrics::WAL_REDO_BYTES_HISTOGRAM::{closure#0} 18
pageserver::metrics::WAL_REDO_PROCESS_LAUNCH_DURATION_HISTOGRAM::{closure#0} 18
pageserver::metrics::WAL_REDO_RECORDS_HISTOGRAM::{closure#0} 18
pageserver::metrics::WAL_REDO_RECORD_COUNTER::{closure#0} 18
pageserver::metrics::WAL_REDO_TIME::{closure#0} 18
pageserver::metrics::remove_tenant_metrics 18
<pageserver::metrics::EvictionsWithLowResidenceDuration>::change_threshold 24
<pageserver::metrics::EvictionsWithLowResidenceDuration>::remove 24
<pageserver::metrics::TimelineMetrics>::resident_physical_size_get 24
<pageserver::metrics::TimelineMetrics>::shutdown 24
pageserver::metrics::SCAN_LATENCY::{closure#0} 24
<pageserver::metrics::GlobalAndPerTimelineHistogramTimer as core::ops::drop::Drop>::drop 30
<pageserver::metrics::SmgrQueryTimePerTimeline>::start_timer 30
pageserver::metrics::BROKEN_TENANTS_SET::{closure#0} 36
<&str as core::convert::From<pageserver::metrics::WalRedoKillCause>>::from 54
<&str as core::convert::From<&pageserver::metrics::WalRedoKillCause>>::from 0
<&str as core::convert::From>::from 54
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge as core::ops::drop::Drop>::drop 54
<pageserver::metrics::RemoteTimelineClientMetrics as core::ops::drop::Drop>::drop 54
<pageserver::metrics::WalRedoProcessCounters as core::default::Default>::default::{closure#0} 54
pageserver::metrics::WAIT_LSN_TIME::{closure#0} 54
pageserver::metrics::BACKGROUND_LOOP_SEMAPHORE::{closure#0} 60
pageserver::metrics::smgr_query_time_tests::basic::{closure#0} 60
<pageserver::metrics::ScanLatency>::for_task_kind 72
pageserver::metrics::DELETION_QUEUE::{closure#0} 83
<pageserver::metrics::SmgrQueryTypeIter>::get 114
::clone 0
::fmt 0
::next_back 0
::len 0
::iter 6
::size_hint 6
::get 30
::next 36
::nth 36
pageserver::metrics::PAGE_CACHE::{closure#0} 252
pageserver::metrics::PAGE_CACHE_READ_ACCESSES::{closure#0} 252
pageserver::metrics::PAGE_CACHE_READ_HITS::{closure#0} 252
pageserver::metrics::PAGE_CACHE_SIZE::{closure#0} 252
pageserver::metrics::PAGE_CACHE_SIZE_CURRENT_BYTES::{closure#0} 252
pageserver::metrics::page_cache_eviction_metrics::CALLS_VEC::{closure#0} 252
pageserver::metrics::page_cache_eviction_metrics::ITERS_TOTAL_VEC::{closure#0} 252
pageserver::metrics::smgr_query_time_tests::basic::{closure#0}::{closure#0} 300
pageserver::metrics::tokio_epoll_uring::THREAD_LOCAL_LAUNCH_SUCCESSES::{closure#0} 300
pageserver::metrics::page_cache_eviction_metrics::observe::CALLS::{closure#0} 312
pageserver::metrics::page_cache_eviction_metrics::observe::ITERS_TOTAL::{closure#0} 312
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES::{closure#0} 480
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES_CHOSEN::{closure#0} 480
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES_CONSIDERED::{closure#0} 480
pageserver::metrics::COMPRESSION_IMAGE_OUTPUT_BYTES::{closure#0} 480
pageserver::metrics::GET_VECTORED_LATENCY::{closure#0} 480
pageserver::metrics::REMOTE_OPERATION_TIME::{closure#0} 486
pageserver::metrics::REMOTE_TIMELINE_CLIENT_BYTES_FINISHED_COUNTER::{closure#0} 486
pageserver::metrics::REMOTE_TIMELINE_CLIENT_BYTES_STARTED_COUNTER::{closure#0} 486
pageserver::metrics::RESIDENT_PHYSICAL_SIZE_GLOBAL::{closure#0} 492
pageserver::metrics::TIMELINE_EPHEMERAL_BYTES::{closure#0} 492
pageserver::metrics::TOKIO_EXECUTOR_THREAD_COUNT::{closure#0} 492
pageserver::metrics::VEC_READ_NUM_LAYERS_VISITED::{closure#0} 492
pageserver::metrics::set_tokio_runtime_setup 492
pageserver::metrics::GET_RECONSTRUCT_DATA_TIME::{closure#0} 498
pageserver::metrics::RECONSTRUCT_TIME::{closure#0} 498
pageserver::metrics::REMOTE_TIMELINE_CLIENT_CALLS::{closure#0} 498
pageserver::metrics::AUX_FILE_SIZE::{closure#0} 504
pageserver::metrics::CURRENT_LOGICAL_SIZE::{closure#0} 504
pageserver::metrics::EVICTIONS::{closure#0} 504
pageserver::metrics::EVICTIONS_WITH_LOW_RESIDENCE_DURATION::{closure#0} 504
pageserver::metrics::LAST_RECORD_LSN::{closure#0} 504
pageserver::metrics::PITR_HISTORY_SIZE::{closure#0} 504
pageserver::metrics::REMOTE_PHYSICAL_SIZE::{closure#0} 504
pageserver::metrics::REMOTE_PHYSICAL_SIZE_GLOBAL::{closure#0} 504
pageserver::metrics::RESIDENT_PHYSICAL_SIZE::{closure#0} 504
pageserver::metrics::STANDBY_HORIZON::{closure#0} 504
pageserver::metrics::STORAGE_TIME_COUNT_PER_TIMELINE::{closure#0} 504
pageserver::metrics::STORAGE_TIME_GLOBAL::{closure#0} 504
pageserver::metrics::STORAGE_TIME_SUM_PER_TIMELINE::{closure#0} 504
pageserver::metrics::TIMELINE_ARCHIVE_SIZE::{closure#0} 504
pageserver::metrics::TIMELINE_LAYER_COUNT::{closure#0} 504
pageserver::metrics::TIMELINE_LAYER_SIZE::{closure#0} 504
pageserver::metrics::VALID_LSN_LEASE_COUNT::{closure#0} 504
pageserver::metrics::VISIBLE_PHYSICAL_SIZE::{closure#0} 504
pageserver::metrics::initial_logical_size::CALCULATED::{closure#0} 504
pageserver::metrics::initial_logical_size::DROP_CALCULATION::{closure#0} 504
pageserver::metrics::initial_logical_size::START_CALCULATION::{closure#0} 504
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL::{closure#0} 510
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL_BUCKETS::{closure#0} 510
pageserver::metrics::SMGR_QUERY_TIME_PER_TENANT_TIMELINE::{closure#0} 510
pageserver::metrics::TENANT_STATE_METRIC::{closure#0} 510
pageserver::metrics::tenant_throttling::TIMELINE_GET::{closure#0} 510
pageserver::metrics::tenant_throttling::TIMELINE_GET::{closure#0}::WAIT_COUNT::{closure#0} 510
pageserver::metrics::tenant_throttling::TIMELINE_GET::{closure#0}::WAIT_USECS::{closure#0} 510
<&str as core::convert::From<pageserver::metrics::initial_logical_size::StartCircumstances>>::from 540
<&str as core::convert::From<&pageserver::metrics::initial_logical_size::StartCircumstances>>::from 0
<&str as core::convert::From>::from 540
<pageserver::metrics::initial_logical_size::OngoingCalculationGuard as core::ops::drop::Drop>::drop 540
<pageserver::metrics::initial_logical_size::OngoingCalculationGuard>::calculation_result_saved 540
<pageserver::metrics::initial_logical_size::StartCalculation>::first 540
pageserver::metrics::BACKGROUND_LOOP_SEMAPHORE::{closure#0}::{closure#0} 540
pageserver::metrics::BACKGROUND_LOOP_SEMAPHORE::{closure#0}::{closure#1} 540
pageserver::metrics::STORAGE_IO_SIZE::{closure#0} 582
<pageserver::metrics::StorageIoTime>::new 594
pageserver::metrics::SCAN_LATENCY::{closure#0}::{closure#0} 720
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_finished_counter::{closure#0} 858
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_started_counter::{closure#0} 858
<<pageserver::metrics::BackgroundLoopSemaphoreMetrics>::measure_acquisition::Record as core::ops::drop::Drop>::drop 1092
<pageserver::metrics::BackgroundLoopSemaphoreMetrics>::measure_acquisition 1092
<pageserver::metrics::EvictionsWithLowResidenceDurationBuilder>::build 1236
<pageserver::metrics::EvictionsWithLowResidenceDurationBuilder>::new 1236
<pageserver::metrics::TimelineMetrics>::new 1236
<pageserver::metrics::EvictionsWithLowResidenceDuration>::threshold_label_value 1260
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::new 1266
<pageserver::metrics::RemoteTimelineClientMetrics>::new 1266
<pageserver::metrics::SmgrQueryTimePerTimeline>::new 1266
<pageserver::metrics::TimelineMetrics>::resident_physical_size_sub 1432
<pageserver::metrics::GetKind as core::fmt::Display>::fmt 1992
<&str as core::convert::From<&pageserver::metrics::GetKind>>::from 0
>::try_from 0
::fmt 0
::from_str 0
<&str as core::convert::From>::from 1992
<pageserver::metrics::RemoteTimelineClientMetrics>::calls_counter_pair::{closure#0} 2230
<pageserver::metrics::AlwaysRecordingStorageTimeMetricsTimer as core::ops::drop::Drop>::drop 2262
<pageserver::metrics::StorageTimeMetricsTimer>::record_on_drop 2262
<pageserver::metrics::GetVectoredLatency>::for_task_kind 3354
<pageserver::metrics::TimelineMetrics>::record_new_file_metrics 4524
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_started_counter 4548
<pageserver::metrics::TimelineMetrics>::resident_physical_size_add 4614
<pageserver::metrics::MetricLayerKind as core::fmt::Display>::fmt 5040
<&str as core::convert::From<&pageserver::metrics::MetricLayerKind>>::from 0
>::try_from 0
::fmt 0
::from_str 0
<&str as core::convert::From>::from 5040
<pageserver::metrics::StorageIoOperation>::as_str 5346
<pageserver::metrics::StorageIoOperationIter>::get 5346
::iter 0
::clone 0
::fmt 0
::next_back 0
::len 0
::next 0
::nth 0
::size_hint 0
::get 0
::from_repr 5346
<pageserver::metrics::StorageIoTime>::new::{closure#0} 5346
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::set 5442
<pageserver::metrics::SmgrQueryTimePerTimeline>::new::{closure#0} 6330
<pageserver::metrics::SmgrQueryType>::from_repr 6330
pageserver::metrics::PAGE_CACHE::{closure#0}::{closure#0} 7560
<&str as core::convert::From<pageserver::metrics::SmgrQueryType>>::from 7650
<&str as core::convert::From<&pageserver::metrics::SmgrQueryType>>::from 0
<&str as core::convert::From>::from 7650
<pageserver::metrics::RemoteTimelineClientMetrics>::remote_operation_time 8043
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_finished_counter 8307
<pageserver::tenant::remote_timeline_client::upload::upload_index_part::{closure#0} as pageserver::metrics::MeasureRemoteOp>::measure_remote_op 8411
::measure_remote_op 18
::measure_remote_op 60
::measure_remote_op 4095
::measure_remote_op 4238
<pageserver::metrics::RemoteTimelineClientMetrics>::call_end 8681
<&str as core::convert::From<pageserver::metrics::StorageTimeOperation>>::from 9888
<&str as core::convert::From<&pageserver::metrics::StorageTimeOperation>>::from 0
<&str as core::convert::From>::from 9888
<pageserver::metrics::StorageTimeMetrics>::new 9888
<pageserver::metrics::RemoteTimelineClientCallMetricGuard>::will_decrement_manually 10300
<pageserver::metrics::RemoteTimelineClientCallMetricGuard as core::ops::drop::Drop>::drop 10378
<pageserver::metrics::RemoteTimelineClientMetrics>::call_begin 10378
<pageserver::metrics::StorageTimeMetricsTimer>::stop_and_record 11176
pageserver::metrics::GET_VECTORED_LATENCY::{closure#0}::{closure#0} 14400
<pageserver::metrics::StorageTimeMetrics>::start_timer 14560
<pageserver::metrics::StorageTimeMetricsTimer>::new 14560
<pageserver::metrics::RemoteTimelineClientMetrics>::calls_counter_pair 19059
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL_BUCKETS::{closure#0}::{closure#0} 20910
<pageserver::metrics::RemoteOpFileKind>::as_str 39993
<pageserver::metrics::RemoteOpKind>::as_str 39993
pageserver::metrics::PAGE_CACHE::{closure#0}::{closure#0}::{closure#0} 60480
pageserver::metrics::page_cache_eviction_metrics::observe 96499
<pageserver::metrics::MeasuredRemoteOp<pageserver::tenant::remote_timeline_client::upload::upload_index_part::{closure#0}> as core::future::future::Future>::poll 122221
as core::future::future::Future>::poll 292
as core::future::future::Future>::poll 354
as core::future::future::Future>::poll 20910
as core::future::future::Future>::poll 100665
<pageserver::metrics::ReconstructTimeMetrics>::for_get_kind 1880340
<pageserver::metrics::ReconstructDataTimeMetrics>::for_get_kind 1880388
<pageserver::metrics::PageCacheMetrics>::for_ctx 3318268
<pageserver::metrics::StorageIoTime>::get 6866669

Generated by: LCOV version 2.1-beta