LCOV - code coverage report
Current view: top level - pageserver/src - metrics.rs (source / functions) Coverage Total Hit
Test: 7eb96e224e685167ad85f58f858387d8cf253f63.info Lines: 74.2 % 2442 1812
Test Date: 2024-09-23 21:23:07 Functions: 65.5 % 275 180

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
<&str as core::convert::From<pageserver::metrics::SmgrQueryType>>::from 15342
<&str as core::convert::From<&pageserver::metrics::SmgrQueryType>>::from 0
<&str as core::convert::From>::from 15342
<&str as core::convert::From<pageserver::metrics::StorageTimeOperation>>::from 9936
<&str as core::convert::From<&pageserver::metrics::StorageTimeOperation>>::from 0
<&str as core::convert::From>::from 9936
<&str as core::convert::From<pageserver::metrics::WalRedoKillCause>>::from 72
<&str as core::convert::From<&pageserver::metrics::WalRedoKillCause>>::from 0
<&str as core::convert::From>::from 72
<&str as core::convert::From<pageserver::metrics::initial_logical_size::StartCircumstances>>::from 546
<&str as core::convert::From<&pageserver::metrics::initial_logical_size::StartCircumstances>>::from 0
<&str as core::convert::From>::from 546
<<pageserver::metrics::BackgroundLoopSemaphoreMetrics>::measure_acquisition::Record as core::ops::drop::Drop>::drop 1092
<pageserver::metrics::AlwaysRecordingStorageTimeMetricsTimer as core::ops::drop::Drop>::drop 2262
<pageserver::metrics::BackgroundLoopSemaphoreMetrics>::measure_acquisition 1092
<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::EvictionsWithLowResidenceDuration>::change_threshold 24
<pageserver::metrics::EvictionsWithLowResidenceDuration>::observe 12
<pageserver::metrics::EvictionsWithLowResidenceDuration>::remove 24
<pageserver::metrics::EvictionsWithLowResidenceDuration>::threshold_label_value 1266
<pageserver::metrics::EvictionsWithLowResidenceDurationBuilder>::build 1242
<pageserver::metrics::EvictionsWithLowResidenceDurationBuilder>::new 1242
<pageserver::metrics::GetKind as core::fmt::Display>::fmt 2016
<&str as core::convert::From<&pageserver::metrics::GetKind>>::from 0
<&str as core::convert::From>::from 2016
>::try_from 0
::fmt 0
::from_str 0
<pageserver::metrics::GetVectoredLatency>::for_task_kind 3396
<pageserver::metrics::GlobalAndPerTimelineHistogramTimer as core::ops::drop::Drop>::drop 30
<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::MeasuredRemoteOp<pageserver::tenant::remote_timeline_client::upload::upload_index_part::{closure#0}> as core::future::future::Future>::poll 129737
as core::future::future::Future>::poll 355
as core::future::future::Future>::poll 295
as core::future::future::Future>::poll 20905
as core::future::future::Future>::poll 108182
<pageserver::metrics::MetricLayerKind as core::fmt::Display>::fmt 5064
<&str as core::convert::From<&pageserver::metrics::MetricLayerKind>>::from 0
<&str as core::convert::From>::from 5064
>::try_from 0
::fmt 0
::from_str 0
<pageserver::metrics::PageCacheMetrics>::for_ctx 3305986
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge as core::ops::drop::Drop>::drop 54
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::get 6
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::new 1272
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::set 5458
<pageserver::metrics::ReconstructDataTimeMetrics>::for_get_kind 1880463
<pageserver::metrics::ReconstructTimeMetrics>::for_get_kind 1880415
<pageserver::metrics::RemoteOpFileKind>::as_str 40295
<pageserver::metrics::RemoteOpKind>::as_str 40295
<pageserver::metrics::RemoteTimelineClientCallMetricGuard as core::ops::drop::Drop>::drop 10390
<pageserver::metrics::RemoteTimelineClientCallMetricGuard>::will_decrement_manually 10312
<pageserver::metrics::RemoteTimelineClientMetrics as core::ops::drop::Drop>::drop 54
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_finished_counter 8400
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_finished_counter::{closure#0} 864
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_started_counter 4554
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_started_counter::{closure#0} 864
<pageserver::metrics::RemoteTimelineClientMetrics>::call_begin 10390
<pageserver::metrics::RemoteTimelineClientMetrics>::call_end 8775
<pageserver::metrics::RemoteTimelineClientMetrics>::calls_counter_pair 19165
<pageserver::metrics::RemoteTimelineClientMetrics>::calls_counter_pair::{closure#0} 2243
<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::RemoteTimelineClientMetrics>::new 1272
<pageserver::metrics::RemoteTimelineClientMetrics>::remote_operation_time 8140
<pageserver::metrics::ScanLatency>::for_task_kind 72
<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>::new 1272
<pageserver::metrics::SmgrQueryTimePerTimeline>::new::{closure#0} 6360
<pageserver::metrics::SmgrQueryTimePerTimeline>::new::{closure#1} 6360
<pageserver::metrics::SmgrQueryTimePerTimeline>::start_timer 30
<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::SmgrQueryType>::from_repr 12720
<pageserver::metrics::SmgrQueryTypeIter>::get 114
::iter 6
::clone 0
::fmt 0
::next_back 0
::len 0
::next 36
::nth 36
::size_hint 6
::get 30
<pageserver::metrics::StorageIoOperation>::as_str 5400
<pageserver::metrics::StorageIoOperationIter>::get 5400
::iter 0
::from_repr 5400
::clone 0
::fmt 0
::next_back 0
::len 0
::next 0
::nth 0
::size_hint 0
::get 0
<pageserver::metrics::StorageIoTime>::get 6869935
<pageserver::metrics::StorageIoTime>::new 600
<pageserver::metrics::StorageIoTime>::new::{closure#0} 5400
<pageserver::metrics::StorageTimeMetrics>::new 9936
<pageserver::metrics::StorageTimeMetrics>::start_timer 14588
<pageserver::metrics::StorageTimeMetricsTimer>::new 14588
<pageserver::metrics::StorageTimeMetricsTimer>::record_on_drop 2262
<pageserver::metrics::StorageTimeMetricsTimer>::stop_and_record 11193
<pageserver::metrics::TenantManagerMetrics>::slot_inserted 6
<pageserver::metrics::TenantManagerMetrics>::slot_removed 6
<pageserver::metrics::TenantManagerMetrics>::slots_total 0
<pageserver::metrics::TimelineMetrics>::new 1242
<pageserver::metrics::TimelineMetrics>::new::{closure#0} 0
<pageserver::metrics::TimelineMetrics>::record_new_file_metrics 4530
<pageserver::metrics::TimelineMetrics>::resident_physical_size_add 4620
<pageserver::metrics::TimelineMetrics>::resident_physical_size_get 24
<pageserver::metrics::TimelineMetrics>::resident_physical_size_sub 1432
<pageserver::metrics::TimelineMetrics>::shutdown 24
<pageserver::metrics::WalRedoProcessCounters as core::default::Default>::default 24
<pageserver::metrics::WalRedoProcessCounters as core::default::Default>::default::{closure#0} 72
<pageserver::metrics::disk_usage_based_eviction::Metrics as core::default::Default>::default 0
<pageserver::metrics::initial_logical_size::FinishedCalculationGuard as core::ops::drop::Drop>::drop 18
<pageserver::metrics::initial_logical_size::OngoingCalculationGuard as core::ops::drop::Drop>::drop 546
<pageserver::metrics::initial_logical_size::OngoingCalculationGuard>::calculation_result_saved 546
<pageserver::metrics::initial_logical_size::StartCalculation>::first 546
<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::tenant_throttling::TimelineGet>::new 570
<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::tenant::remote_timeline_client::upload::upload_index_part::{closure#0} as pageserver::metrics::MeasureRemoteOp>::measure_remote_op 8426
::measure_remote_op 60
::measure_remote_op 18
::measure_remote_op 4247
::measure_remote_op 4101
pageserver::metrics::AUX_FILE_SIZE::{closure#0} 510
pageserver::metrics::BACKGROUND_LOOP_PERIOD_OVERRUN_COUNT::{closure#0} 0
pageserver::metrics::BACKGROUND_LOOP_SEMAPHORE::{closure#0} 60
pageserver::metrics::BACKGROUND_LOOP_SEMAPHORE::{closure#0}::{closure#0} 540
pageserver::metrics::BACKGROUND_LOOP_SEMAPHORE::{closure#0}::{closure#1} 540
pageserver::metrics::BASEBACKUP_QUERY_TIME::{closure#0} 0
pageserver::metrics::BROKEN_TENANTS_SET::{closure#0} 36
pageserver::metrics::CIRCUIT_BREAKERS_BROKEN::{closure#0} 0
pageserver::metrics::CIRCUIT_BREAKERS_UNBROKEN::{closure#0} 0
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES::{closure#0} 486
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES_CHOSEN::{closure#0} 486
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES_CONSIDERED::{closure#0} 486
pageserver::metrics::COMPRESSION_IMAGE_OUTPUT_BYTES::{closure#0} 486
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::CURRENT_LOGICAL_SIZE::{closure#0} 510
pageserver::metrics::DELETION_QUEUE::{closure#0} 82
pageserver::metrics::DIRECTORY_ENTRIES_COUNT::{closure#0} 0
pageserver::metrics::EVICTIONS::{closure#0} 510
pageserver::metrics::EVICTIONS_WITH_LOW_RESIDENCE_DURATION::{closure#0} 510
pageserver::metrics::EVICTION_ITERATION_DURATION::{closure#0} 0
pageserver::metrics::GET_RECONSTRUCT_DATA_TIME::{closure#0} 504
pageserver::metrics::GET_VECTORED_LATENCY::{closure#0} 486
pageserver::metrics::GET_VECTORED_LATENCY::{closure#0}::{closure#0} 14580
pageserver::metrics::LAST_RECORD_LSN::{closure#0} 510
pageserver::metrics::LIVE_CONNECTIONS::{closure#0} 0
pageserver::metrics::NODE_UTILIZATION_SCORE::{closure#0} 0
pageserver::metrics::PAGE_CACHE::{closure#0} 258
pageserver::metrics::PAGE_CACHE::{closure#0}::{closure#0} 7740
pageserver::metrics::PAGE_CACHE::{closure#0}::{closure#0}::{closure#0} 61920
pageserver::metrics::PAGE_CACHE_ERRORS::{closure#0} 0
pageserver::metrics::PAGE_CACHE_READ_ACCESSES::{closure#0} 258
pageserver::metrics::PAGE_CACHE_READ_HITS::{closure#0} 258
pageserver::metrics::PAGE_CACHE_SIZE::{closure#0} 258
pageserver::metrics::PAGE_CACHE_SIZE_CURRENT_BYTES::{closure#0} 258
pageserver::metrics::PITR_HISTORY_SIZE::{closure#0} 510
pageserver::metrics::READ_NUM_LAYERS_VISITED::{closure#0} 0
pageserver::metrics::RECONSTRUCT_TIME::{closure#0} 504
pageserver::metrics::REMOTE_ONDEMAND_DOWNLOADED_BYTES::{closure#0} 12
pageserver::metrics::REMOTE_ONDEMAND_DOWNLOADED_LAYERS::{closure#0} 12
pageserver::metrics::REMOTE_OPERATION_TIME::{closure#0} 493
pageserver::metrics::REMOTE_PHYSICAL_SIZE::{closure#0} 510
pageserver::metrics::REMOTE_PHYSICAL_SIZE_GLOBAL::{closure#0} 510
pageserver::metrics::REMOTE_TIMELINE_CLIENT_BYTES_FINISHED_COUNTER::{closure#0} 492
pageserver::metrics::REMOTE_TIMELINE_CLIENT_BYTES_STARTED_COUNTER::{closure#0} 492
pageserver::metrics::REMOTE_TIMELINE_CLIENT_CALLS::{closure#0} 504
pageserver::metrics::RESIDENT_PHYSICAL_SIZE::{closure#0} 510
pageserver::metrics::RESIDENT_PHYSICAL_SIZE_GLOBAL::{closure#0} 498
pageserver::metrics::SCAN_LATENCY::{closure#0} 24
pageserver::metrics::SCAN_LATENCY::{closure#0}::{closure#0} 720
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::SMGR_QUERY_STARTED_GLOBAL::{closure#0} 516
pageserver::metrics::SMGR_QUERY_STARTED_PER_TENANT_TIMELINE::{closure#0} 516
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL::{closure#0} 516
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL_BUCKETS::{closure#0} 516
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL_BUCKETS::{closure#0}::{closure#0} 21156
pageserver::metrics::SMGR_QUERY_TIME_PER_TENANT_TIMELINE::{closure#0} 516
pageserver::metrics::STANDBY_HORIZON::{closure#0} 510
pageserver::metrics::STARTUP_DURATION::{closure#0} 0
pageserver::metrics::STARTUP_IS_LOADING::{closure#0} 0
pageserver::metrics::STORAGE_IO_SIZE::{closure#0} 588
pageserver::metrics::STORAGE_TIME_COUNT_PER_TIMELINE::{closure#0} 510
pageserver::metrics::STORAGE_TIME_GLOBAL::{closure#0} 510
pageserver::metrics::STORAGE_TIME_SUM_PER_TIMELINE::{closure#0} 510
pageserver::metrics::TENANT::{closure#0} 0
pageserver::metrics::TENANT_MANAGER::{closure#0} 6
pageserver::metrics::TENANT_STATE_METRIC::{closure#0} 516
pageserver::metrics::TENANT_SYNTHETIC_SIZE_METRIC::{closure#0} 18
pageserver::metrics::TENANT_TASK_EVENTS::{closure#0} 0
pageserver::metrics::TIMELINE_ARCHIVE_SIZE::{closure#0} 510
pageserver::metrics::TIMELINE_EPHEMERAL_BYTES::{closure#0} 498
pageserver::metrics::TIMELINE_LAYER_COUNT::{closure#0} 510
pageserver::metrics::TIMELINE_LAYER_SIZE::{closure#0} 510
pageserver::metrics::TOKIO_EXECUTOR_THREAD_COUNT::{closure#0} 498
pageserver::metrics::UNEXPECTED_ONDEMAND_DOWNLOADS::{closure#0} 0
pageserver::metrics::VALID_LSN_LEASE_COUNT::{closure#0} 510
pageserver::metrics::VEC_READ_NUM_LAYERS_VISITED::{closure#0} 498
pageserver::metrics::VISIBLE_PHYSICAL_SIZE::{closure#0} 510
pageserver::metrics::WAIT_LSN_TIME::{closure#0} 54
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_CANDIDATES_EVENTS::{closure#0} 6
pageserver::metrics::WALRECEIVER_CANDIDATES_REMOVED::{closure#0} 6
pageserver::metrics::WALRECEIVER_STARTED_CONNECTIONS::{closure#0} 0
pageserver::metrics::WALRECEIVER_SWITCHES::{closure#0} 0
pageserver::metrics::WAL_INGEST::{closure#0} 6
pageserver::metrics::WAL_REDO_BYTES_HISTOGRAM::{closure#0} 18
pageserver::metrics::WAL_REDO_PROCESS_LAUNCH_DURATION_HISTOGRAM::{closure#0} 24
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::initial_logical_size::CALCULATED::{closure#0} 510
pageserver::metrics::initial_logical_size::DROP_CALCULATION::{closure#0} 510
pageserver::metrics::initial_logical_size::START_CALCULATION::{closure#0} 510
pageserver::metrics::initial_logical_size::TIMELINES_WHERE_WALRECEIVER_GOT_APPROXIMATE_SIZE::{closure#0} 0
pageserver::metrics::page_cache_errors_inc 0
pageserver::metrics::page_cache_eviction_metrics::CALLS_VEC::{closure#0} 258
pageserver::metrics::page_cache_eviction_metrics::ITERS_TOTAL_VEC::{closure#0} 258
pageserver::metrics::page_cache_eviction_metrics::observe 96482
pageserver::metrics::page_cache_eviction_metrics::observe::CALLS::{closure#0} 318
pageserver::metrics::page_cache_eviction_metrics::observe::ITERS_TOTAL::{closure#0} 318
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::remove_tenant_metrics 18
pageserver::metrics::set_tokio_runtime_setup 498
pageserver::metrics::smgr_query_time_tests::basic 6
pageserver::metrics::smgr_query_time_tests::basic::{closure#0} 60
pageserver::metrics::smgr_query_time_tests::basic::{closure#0}::{closure#0} 300
pageserver::metrics::smgr_query_time_tests::op_label_name 6
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_FINISH::{closure#0} 516
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_FINISH_PER_TENANT::{closure#0} 516
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_START::{closure#0} 516
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_START_PER_TENANT::{closure#0} 516
pageserver::metrics::tenant_throttling::WAIT_COUNT::{closure#0} 516
pageserver::metrics::tenant_throttling::WAIT_COUNT_PER_TENANT::{closure#0} 516
pageserver::metrics::tenant_throttling::WAIT_USECS::{closure#0} 516
pageserver::metrics::tenant_throttling::WAIT_USECS_PER_TENANT::{closure#0} 516
pageserver::metrics::tenant_throttling::preinitialize_global_metrics 0
pageserver::metrics::tenant_throttling::remove_tenant_metrics 18
pageserver::metrics::tokio_epoll_uring::THREAD_LOCAL_LAUNCH_FAILURES::{closure#0} 0
pageserver::metrics::tokio_epoll_uring::THREAD_LOCAL_LAUNCH_SUCCESSES::{closure#0} 303
pageserver::metrics::virtual_file_descriptor_cache::SIZE_MAX::{closure#0} 0
pageserver::metrics::virtual_file_io_engine::KIND::{closure#0} 0

Generated by: LCOV version 2.1-beta