LCOV - code coverage report
Current view: top level - pageserver/src - metrics.rs (source / functions) Coverage Total Hit
Test: 53437f7e869ac68c86c7d3e4c20964c0156f158c.info Lines: 73.2 % 2268 1661
Test Date: 2024-09-20 16:14:12 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
<&str as core::convert::From<pageserver::metrics::SmgrQueryType>>::from 7686
<&str as core::convert::From<&pageserver::metrics::SmgrQueryType>>::from 0
<&str as core::convert::From>::from 7686
<&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 54
<&str as core::convert::From<&pageserver::metrics::WalRedoKillCause>>::from 0
<&str as core::convert::From>::from 54
<&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 131967
as core::future::future::Future>::poll 358
as core::future::future::Future>::poll 273
as core::future::future::Future>::poll 21371
as core::future::future::Future>::poll 109965
<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 3304894
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge as core::ops::drop::Drop>::drop 54
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::get 6
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::new 1272
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::set 5459
<pageserver::metrics::ReconstructDataTimeMetrics>::for_get_kind 1880481
<pageserver::metrics::ReconstructTimeMetrics>::for_get_kind 1880433
<pageserver::metrics::RemoteOpFileKind>::as_str 40019
<pageserver::metrics::RemoteOpKind>::as_str 40019
<pageserver::metrics::RemoteTimelineClientCallMetricGuard as core::ops::drop::Drop>::drop 10392
<pageserver::metrics::RemoteTimelineClientCallMetricGuard>::will_decrement_manually 10314
<pageserver::metrics::RemoteTimelineClientMetrics as core::ops::drop::Drop>::drop 54
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_finished_counter 8305
<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 10392
<pageserver::metrics::RemoteTimelineClientMetrics>::call_end 8686
<pageserver::metrics::RemoteTimelineClientMetrics>::calls_counter_pair 19078
<pageserver::metrics::RemoteTimelineClientMetrics>::calls_counter_pair::{closure#0} 2244
<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 8046
<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>::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 6360
<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 6890679
<pageserver::metrics::StorageIoTime>::new 600
<pageserver::metrics::StorageIoTime>::new::{closure#0} 5400
<pageserver::metrics::StorageTimeMetrics>::new 9936
<pageserver::metrics::StorageTimeMetrics>::start_timer 14584
<pageserver::metrics::StorageTimeMetricsTimer>::new 14584
<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 1434
<pageserver::metrics::TimelineMetrics>::shutdown 24
<pageserver::metrics::WalRedoProcessCounters as core::default::Default>::default 18
<pageserver::metrics::WalRedoProcessCounters as core::default::Default>::default::{closure#0} 54
<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::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 8423
::measure_remote_op 60
::measure_remote_op 18
::measure_remote_op 4244
::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} 85
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_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} 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::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 96344
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::TIMELINE_GET::{closure#0} 516
pageserver::metrics::tenant_throttling::TIMELINE_GET::{closure#0}::WAIT_COUNT::{closure#0} 516
pageserver::metrics::tenant_throttling::TIMELINE_GET::{closure#0}::WAIT_USECS::{closure#0} 516
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