LCOV - code coverage report
Current view: top level - pageserver/src - metrics.rs (source / functions) Coverage Total Hit
Test: b4ae4c4857f9ef3e144e982a35ee23bc84c71983.info Lines: 73.6 % 2440 1795
Test Date: 2024-10-22 22:13:45 Functions: 65.1 % 275 179

Function Name Sort by function name Hit count Sort by function hit count
<&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::<()> 0
<pageserver::metrics::BasebackupQueryTimeOngoingRecording>::observe::<()>::{closure#0} 0
<pageserver::metrics::BasebackupQueryTimeOngoingRecording>::observe::LOGGED::{closure#0} 0
<pageserver::metrics::ComputeCommandCounters>::for_command 0
<pageserver::metrics::EvictionsWithLowResidenceDuration>::change_threshold 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::tenant_throttling::GlobalAndPerTenantIntCounter>::inc 0
<pageserver::metrics::tenant_throttling::GlobalAndPerTenantIntCounter>::inc_by 0
<pageserver::metrics::tenant_throttling::TimelineGet as pageserver::tenant::throttle::Metric>::accounting_finish 0
<pageserver::metrics::tenant_throttling::TimelineGet as pageserver::tenant::throttle::Metric>::accounting_start 0
<pageserver::metrics::tenant_throttling::TimelineGet as pageserver::tenant::throttle::Metric>::observe_throttling 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::tenant_throttling::preinitialize_global_metrics 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 2
<pageserver::metrics::TenantManagerMetrics>::slot_inserted 2
<pageserver::metrics::TenantManagerMetrics>::slot_removed 2
pageserver::metrics::TENANT_MANAGER::{closure#0} 2
pageserver::metrics::WALRECEIVER_CANDIDATES_EVENTS::{closure#0} 2
pageserver::metrics::WALRECEIVER_CANDIDATES_REMOVED::{closure#0} 2
pageserver::metrics::WAL_INGEST::{closure#0} 2
pageserver::metrics::smgr_query_time_tests::basic 2
pageserver::metrics::smgr_query_time_tests::op_label_name 2
<pageserver::metrics::AlwaysRecordingStorageTimeMetricsTimer as core::ops::drop::Drop>::drop 4
<pageserver::metrics::EvictionsWithLowResidenceDuration>::observe 4
<pageserver::metrics::StorageTimeMetricsTimer>::record_on_drop 4
pageserver::metrics::REMOTE_ONDEMAND_DOWNLOADED_BYTES::{closure#0} 4
pageserver::metrics::REMOTE_ONDEMAND_DOWNLOADED_LAYERS::{closure#0} 4
pageserver::metrics::SCAN_LATENCY::{closure#0} 4
<pageserver::metrics::RemoteTimelineClientMetrics>::get_bytes_finished_counter_value 6
<pageserver::metrics::RemoteTimelineClientMetrics>::get_bytes_finished_counter_value::{closure#0} 6
<pageserver::metrics::RemoteTimelineClientMetrics>::get_bytes_started_counter_value 6
<pageserver::metrics::RemoteTimelineClientMetrics>::get_bytes_started_counter_value::{closure#0} 6
<pageserver::metrics::initial_logical_size::FinishedCalculationGuard as core::ops::drop::Drop>::drop 6
pageserver::metrics::TENANT_SYNTHETIC_SIZE_METRIC::{closure#0} 6
pageserver::metrics::WAL_REDO_BYTES_HISTOGRAM::{closure#0} 6
pageserver::metrics::WAL_REDO_RECORDS_HISTOGRAM::{closure#0} 6
pageserver::metrics::WAL_REDO_RECORD_COUNTER::{closure#0} 6
pageserver::metrics::WAL_REDO_TIME::{closure#0} 6
pageserver::metrics::remove_tenant_metrics 6
pageserver::metrics::tenant_throttling::remove_tenant_metrics 6
<pageserver::metrics::EvictionsWithLowResidenceDuration>::remove 8
<pageserver::metrics::TimelineMetrics>::resident_physical_size_get 8
<pageserver::metrics::TimelineMetrics>::shutdown 8
<pageserver::metrics::WalRedoProcessCounters as core::default::Default>::default 8
pageserver::metrics::WAL_REDO_PROCESS_LAUNCH_DURATION_HISTOGRAM::{closure#0} 8
<pageserver::metrics::GlobalAndPerTimelineHistogramTimer as core::ops::drop::Drop>::drop 10
<pageserver::metrics::SmgrQueryTimePerTimeline>::start_timer 10
<pageserver::metrics::ScanLatency>::for_task_kind 12
pageserver::metrics::BROKEN_TENANTS_SET::{closure#0} 12
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge as core::ops::drop::Drop>::drop 18
<pageserver::metrics::RemoteTimelineClientMetrics as core::ops::drop::Drop>::drop 18
pageserver::metrics::WAIT_LSN_TIME::{closure#0} 18
pageserver::metrics::BACKGROUND_LOOP_SEMAPHORE::{closure#0} 20
pageserver::metrics::smgr_query_time_tests::basic::{closure#0} 20
<&str as core::convert::From<pageserver::metrics::WalRedoKillCause>>::from 24
<&str as core::convert::From<&pageserver::metrics::WalRedoKillCause>>::from 0
<&str as core::convert::From>::from 24
<pageserver::metrics::WalRedoProcessCounters as core::default::Default>::default::{closure#0} 24
pageserver::metrics::DELETION_QUEUE::{closure#0} 30
<pageserver::metrics::SmgrQueryTypeIter>::get 38
::clone 0
::fmt 0
::next_back 0
::len 0
::iter 2
::size_hint 2
::get 10
::next 12
::nth 12
pageserver::metrics::PAGE_CACHE::{closure#0} 84
pageserver::metrics::PAGE_CACHE_READ_ACCESSES::{closure#0} 84
pageserver::metrics::PAGE_CACHE_READ_HITS::{closure#0} 84
pageserver::metrics::PAGE_CACHE_SIZE::{closure#0} 84
pageserver::metrics::PAGE_CACHE_SIZE_CURRENT_BYTES::{closure#0} 84
pageserver::metrics::page_cache_eviction_metrics::CALLS_VEC::{closure#0} 84
pageserver::metrics::page_cache_eviction_metrics::ITERS_TOTAL_VEC::{closure#0} 84
pageserver::metrics::tokio_epoll_uring::THREAD_LOCAL_LAUNCH_SUCCESSES::{closure#0} 99
pageserver::metrics::smgr_query_time_tests::basic::{closure#0}::{closure#0} 100
pageserver::metrics::page_cache_eviction_metrics::observe::CALLS::{closure#0} 104
pageserver::metrics::page_cache_eviction_metrics::observe::ITERS_TOTAL::{closure#0} 104
pageserver::metrics::SCAN_LATENCY::{closure#0}::{closure#0} 120
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES::{closure#0} 158
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES_CHOSEN::{closure#0} 158
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES_CONSIDERED::{closure#0} 158
pageserver::metrics::COMPRESSION_IMAGE_OUTPUT_BYTES::{closure#0} 158
pageserver::metrics::GET_VECTORED_LATENCY::{closure#0} 158
pageserver::metrics::REMOTE_OPERATION_TIME::{closure#0} 160
pageserver::metrics::REMOTE_TIMELINE_CLIENT_BYTES_FINISHED_COUNTER::{closure#0} 160
pageserver::metrics::REMOTE_TIMELINE_CLIENT_BYTES_STARTED_COUNTER::{closure#0} 160
pageserver::metrics::REMOTE_TIMELINE_CLIENT_CALLS::{closure#0} 162
pageserver::metrics::RESIDENT_PHYSICAL_SIZE_GLOBAL::{closure#0} 162
pageserver::metrics::TIMELINE_EPHEMERAL_BYTES::{closure#0} 162
pageserver::metrics::TOKIO_EXECUTOR_THREAD_COUNT::{closure#0} 162
pageserver::metrics::VEC_READ_NUM_LAYERS_VISITED::{closure#0} 162
pageserver::metrics::set_tokio_runtime_setup 162
pageserver::metrics::GET_RECONSTRUCT_DATA_TIME::{closure#0} 164
pageserver::metrics::RECONSTRUCT_TIME::{closure#0} 164
pageserver::metrics::AUX_FILE_SIZE::{closure#0} 166
pageserver::metrics::CURRENT_LOGICAL_SIZE::{closure#0} 166
pageserver::metrics::EVICTIONS::{closure#0} 166
pageserver::metrics::EVICTIONS_WITH_LOW_RESIDENCE_DURATION::{closure#0} 166
pageserver::metrics::LAST_RECORD_LSN::{closure#0} 166
pageserver::metrics::PITR_HISTORY_SIZE::{closure#0} 166
pageserver::metrics::REMOTE_PHYSICAL_SIZE::{closure#0} 166
pageserver::metrics::REMOTE_PHYSICAL_SIZE_GLOBAL::{closure#0} 166
pageserver::metrics::RESIDENT_PHYSICAL_SIZE::{closure#0} 166
pageserver::metrics::STANDBY_HORIZON::{closure#0} 166
pageserver::metrics::STORAGE_TIME_COUNT_PER_TIMELINE::{closure#0} 166
pageserver::metrics::STORAGE_TIME_GLOBAL::{closure#0} 166
pageserver::metrics::STORAGE_TIME_SUM_PER_TIMELINE::{closure#0} 166
pageserver::metrics::TIMELINE_ARCHIVE_SIZE::{closure#0} 166
pageserver::metrics::TIMELINE_LAYER_COUNT::{closure#0} 166
pageserver::metrics::TIMELINE_LAYER_SIZE::{closure#0} 166
pageserver::metrics::VALID_LSN_LEASE_COUNT::{closure#0} 166
pageserver::metrics::VISIBLE_PHYSICAL_SIZE::{closure#0} 166
pageserver::metrics::initial_logical_size::CALCULATED::{closure#0} 166
pageserver::metrics::initial_logical_size::DROP_CALCULATION::{closure#0} 166
pageserver::metrics::initial_logical_size::START_CALCULATION::{closure#0} 166
pageserver::metrics::SMGR_QUERY_STARTED_GLOBAL::{closure#0} 168
pageserver::metrics::SMGR_QUERY_STARTED_PER_TENANT_TIMELINE::{closure#0} 168
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL::{closure#0} 168
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL_BUCKETS::{closure#0} 168
pageserver::metrics::SMGR_QUERY_TIME_PER_TENANT_TIMELINE::{closure#0} 168
pageserver::metrics::TENANT_STATE_METRIC::{closure#0} 168
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_FINISH::{closure#0} 168
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_FINISH_PER_TENANT::{closure#0} 168
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_START::{closure#0} 168
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_START_PER_TENANT::{closure#0} 168
pageserver::metrics::tenant_throttling::WAIT_COUNT::{closure#0} 168
pageserver::metrics::tenant_throttling::WAIT_COUNT_PER_TENANT::{closure#0} 168
pageserver::metrics::tenant_throttling::WAIT_USECS::{closure#0} 168
pageserver::metrics::tenant_throttling::WAIT_USECS_PER_TENANT::{closure#0} 168
<&str as core::convert::From<pageserver::metrics::initial_logical_size::StartCircumstances>>::from 178
<&str as core::convert::From<&pageserver::metrics::initial_logical_size::StartCircumstances>>::from 0
<&str as core::convert::From>::from 178
<pageserver::metrics::initial_logical_size::OngoingCalculationGuard as core::ops::drop::Drop>::drop 178
<pageserver::metrics::initial_logical_size::OngoingCalculationGuard>::calculation_result_saved 178
<pageserver::metrics::initial_logical_size::StartCalculation>::first 178
pageserver::metrics::BACKGROUND_LOOP_SEMAPHORE::{closure#0}::{closure#0} 180
pageserver::metrics::BACKGROUND_LOOP_SEMAPHORE::{closure#0}::{closure#1} 180
<pageserver::metrics::tenant_throttling::TimelineGet>::new 186
pageserver::metrics::STORAGE_IO_SIZE::{closure#0} 192
<pageserver::metrics::StorageIoTime>::new 196
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_finished_counter::{closure#0} 284
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_started_counter::{closure#0} 284
<<pageserver::metrics::BackgroundLoopSemaphoreMetrics>::measure_acquisition::Record as core::ops::drop::Drop>::drop 364
<pageserver::metrics::BackgroundLoopSemaphoreMetrics>::measure_acquisition 364
<pageserver::metrics::EvictionsWithLowResidenceDurationBuilder>::build 410
<pageserver::metrics::EvictionsWithLowResidenceDurationBuilder>::new 410
<pageserver::metrics::TimelineMetrics>::new 410
<pageserver::metrics::EvictionsWithLowResidenceDuration>::threshold_label_value 418
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::new 420
<pageserver::metrics::RemoteTimelineClientMetrics>::new 420
<pageserver::metrics::SmgrQueryTimePerTimeline>::new 420
<pageserver::metrics::TimelineMetrics>::resident_physical_size_sub 473
<pageserver::metrics::GetKind as core::fmt::Display>::fmt 656
<&str as core::convert::From<&pageserver::metrics::GetKind>>::from 0
>::try_from 0
::fmt 0
::from_str 0
<&str as core::convert::From>::from 656
<pageserver::metrics::RemoteTimelineClientMetrics>::calls_counter_pair::{closure#0} 735
<pageserver::metrics::GetVectoredLatency>::for_task_kind 1108
<pageserver::metrics::TimelineMetrics>::record_new_file_metrics 1506
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_started_counter 1514
<pageserver::metrics::TimelineMetrics>::resident_physical_size_add 1536
<pageserver::metrics::MetricLayerKind as core::fmt::Display>::fmt 1672
<&str as core::convert::From<&pageserver::metrics::MetricLayerKind>>::from 0
>::try_from 0
::fmt 0
::from_str 0
<&str as core::convert::From>::from 1672
<pageserver::metrics::StorageIoOperation>::as_str 1764
<pageserver::metrics::StorageIoOperationIter>::get 1764
::iter 0
::clone 0
::fmt 0
::next_back 0
::len 0
::next 0
::nth 0
::size_hint 0
::get 0
::from_repr 1764
<pageserver::metrics::StorageIoTime>::new::{closure#0} 1764
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::set 1806
<pageserver::metrics::SmgrQueryTimePerTimeline>::new::{closure#0} 2100
<pageserver::metrics::SmgrQueryTimePerTimeline>::new::{closure#1} 2100
<pageserver::metrics::StorageTimeMetricsTimer>::stop_and_record 2220
pageserver::metrics::PAGE_CACHE::{closure#0}::{closure#0} 2520
<pageserver::metrics::RemoteTimelineClientMetrics>::remote_operation_time 2773
<pageserver::tenant::remote_timeline_client::upload::upload_index_part::{closure#0} as pageserver::metrics::MeasureRemoteOp>::measure_remote_op 2845
::measure_remote_op 6
::measure_remote_op 20
::measure_remote_op 1400
::measure_remote_op 1419
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_finished_counter 2865
<pageserver::metrics::RemoteTimelineClientMetrics>::call_end 3047
<&str as core::convert::From<pageserver::metrics::StorageTimeOperation>>::from 3280
<&str as core::convert::From<&pageserver::metrics::StorageTimeOperation>>::from 0
<&str as core::convert::From>::from 3280
<pageserver::metrics::StorageTimeMetrics>::new 3280
<pageserver::metrics::StorageTimeMetrics>::start_timer 3348
<pageserver::metrics::StorageTimeMetricsTimer>::new 3348
<pageserver::metrics::RemoteTimelineClientCallMetricGuard>::will_decrement_manually 3401
<pageserver::metrics::RemoteTimelineClientCallMetricGuard as core::ops::drop::Drop>::drop 3427
<pageserver::metrics::RemoteTimelineClientMetrics>::call_begin 3427
<pageserver::metrics::SmgrQueryType>::from_repr 4200
pageserver::metrics::GET_VECTORED_LATENCY::{closure#0}::{closure#0} 4740
<&str as core::convert::From<pageserver::metrics::SmgrQueryType>>::from 5066
<&str as core::convert::From<&pageserver::metrics::SmgrQueryType>>::from 0
<&str as core::convert::From>::from 5066
<pageserver::metrics::RemoteTimelineClientMetrics>::calls_counter_pair 6474
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL_BUCKETS::{closure#0}::{closure#0} 6888
<pageserver::metrics::RemoteOpFileKind>::as_str 13638
<pageserver::metrics::RemoteOpKind>::as_str 13638
pageserver::metrics::PAGE_CACHE::{closure#0}::{closure#0}::{closure#0} 20160
pageserver::metrics::page_cache_eviction_metrics::observe 32007
<pageserver::metrics::MeasuredRemoteOp<pageserver::tenant::remote_timeline_client::upload::upload_index_part::{closure#0}> as core::future::future::Future>::poll 44469
as core::future::future::Future>::poll 78
as core::future::future::Future>::poll 93
as core::future::future::Future>::poll 6257
as core::future::future::Future>::poll 38041
<pageserver::metrics::ReconstructTimeMetrics>::for_get_kind 626490
<pageserver::metrics::ReconstructDataTimeMetrics>::for_get_kind 626506
<pageserver::metrics::PageCacheMetrics>::for_ctx 1101436
<pageserver::metrics::StorageIoTime>::get 2277116

Generated by: LCOV version 2.1-beta