LCOV - code coverage report
Current view:
top level
-
pageserver/src
- metrics.rs
(
source
/ functions)
Coverage
Total
Hit
Test:
fc67f8dc6087a0b4f4f0bcd74f6e1dc25fab8cf3.info
Lines:
74.2 %
2442
1812
Test Date:
2024-09-24 13:57:57
Functions:
65.5 %
275
180
Function Name
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
15414
<&str as core::convert::From<&pageserver::metrics::SmgrQueryType>>::from
0
<&str as core::convert::From
>::from
15414
<&str as core::convert::From<pageserver::metrics::StorageTimeOperation>>::from
9984
<&str as core::convert::From<&pageserver::metrics::StorageTimeOperation>>::from
0
<&str as core::convert::From
>::from
9984
<&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
552
<&str as core::convert::From<&pageserver::metrics::initial_logical_size::StartCircumstances>>::from
0
<&str as core::convert::From
>::from
552
<<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
1272
<pageserver::metrics::EvictionsWithLowResidenceDurationBuilder>::build
1248
<pageserver::metrics::EvictionsWithLowResidenceDurationBuilder>::new
1248
<pageserver::metrics::GetKind as core::fmt::Display>::fmt
2040
<&str as core::convert::From<&pageserver::metrics::GetKind>>::from
0
<&str as core::convert::From
>::from
2040
>::try_from
0
::fmt
0
::from_str
0
<pageserver::metrics::GetVectoredLatency>::for_task_kind
3432
<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
127800
as core::future::future::Future>::poll
356
as core::future::future::Future>::poll
291
as core::future::future::Future>::poll
21008
as core::future::future::Future>::poll
106145
<pageserver::metrics::MetricLayerKind as core::fmt::Display>::fmt
5088
<&str as core::convert::From<&pageserver::metrics::MetricLayerKind>>::from
0
<&str as core::convert::From
>::from
5088
>::try_from
0
::fmt
0
::from_str
0
<pageserver::metrics::PageCacheMetrics>::for_ctx
3302278
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge as core::ops::drop::Drop>::drop
54
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::get
6
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::new
1278
<pageserver::metrics::PerTimelineRemotePhysicalSizeGauge>::set
5471
<pageserver::metrics::ReconstructDataTimeMetrics>::for_get_kind
1880507
<pageserver::metrics::ReconstructTimeMetrics>::for_get_kind
1880459
<pageserver::metrics::RemoteOpFileKind>::as_str
40236
<pageserver::metrics::RemoteOpKind>::as_str
40236
<pageserver::metrics::RemoteTimelineClientCallMetricGuard as core::ops::drop::Drop>::drop
10404
<pageserver::metrics::RemoteTimelineClientCallMetricGuard>::will_decrement_manually
10326
<pageserver::metrics::RemoteTimelineClientMetrics as core::ops::drop::Drop>::drop
54
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_finished_counter
8373
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_finished_counter::{closure#0}
870
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_started_counter
4560
<pageserver::metrics::RemoteTimelineClientMetrics>::bytes_started_counter::{closure#0}
870
<pageserver::metrics::RemoteTimelineClientMetrics>::call_begin
10404
<pageserver::metrics::RemoteTimelineClientMetrics>::call_end
8749
<pageserver::metrics::RemoteTimelineClientMetrics>::calls_counter_pair
19153
<pageserver::metrics::RemoteTimelineClientMetrics>::calls_counter_pair::{closure#0}
2254
<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
1278
<pageserver::metrics::RemoteTimelineClientMetrics>::remote_operation_time
8114
<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
1278
<pageserver::metrics::SmgrQueryTimePerTimeline>::new::{closure#0}
6390
<pageserver::metrics::SmgrQueryTimePerTimeline>::new::{closure#1}
6390
<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
12780
<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
5454
<pageserver::metrics::StorageIoOperationIter>::get
5454
::iter
0
::from_repr
5454
::clone
0
::fmt
0
::next_back
0
::len
0
::next
0
::nth
0
::size_hint
0
::get
0
<pageserver::metrics::StorageIoTime>::get
6871773
<pageserver::metrics::StorageIoTime>::new
606
<pageserver::metrics::StorageIoTime>::new::{closure#0}
5454
<pageserver::metrics::StorageTimeMetrics>::new
9984
<pageserver::metrics::StorageTimeMetrics>::start_timer
14608
<pageserver::metrics::StorageTimeMetricsTimer>::new
14608
<pageserver::metrics::StorageTimeMetricsTimer>::record_on_drop
2262
<pageserver::metrics::StorageTimeMetricsTimer>::stop_and_record
11211
<pageserver::metrics::TenantManagerMetrics>::slot_inserted
6
<pageserver::metrics::TenantManagerMetrics>::slot_removed
6
<pageserver::metrics::TenantManagerMetrics>::slots_total
0
<pageserver::metrics::TimelineMetrics>::new
1248
<pageserver::metrics::TimelineMetrics>::new::{closure#0}
0
<pageserver::metrics::TimelineMetrics>::record_new_file_metrics
4536
<pageserver::metrics::TimelineMetrics>::resident_physical_size_add
4626
<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
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
552
<pageserver::metrics::initial_logical_size::OngoingCalculationGuard>::calculation_result_saved
552
<pageserver::metrics::initial_logical_size::StartCalculation>::first
552
<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
576
<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
8435
::measure_remote_op
60
::measure_remote_op
18
::measure_remote_op
4250
::measure_remote_op
4107
pageserver::metrics::AUX_FILE_SIZE::{closure#0}
516
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}
35
pageserver::metrics::CIRCUIT_BREAKERS_BROKEN::{closure#0}
0
pageserver::metrics::CIRCUIT_BREAKERS_UNBROKEN::{closure#0}
0
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES::{closure#0}
492
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES_CHOSEN::{closure#0}
492
pageserver::metrics::COMPRESSION_IMAGE_INPUT_BYTES_CONSIDERED::{closure#0}
492
pageserver::metrics::COMPRESSION_IMAGE_OUTPUT_BYTES::{closure#0}
492
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}
516
pageserver::metrics::DELETION_QUEUE::{closure#0}
82
pageserver::metrics::DIRECTORY_ENTRIES_COUNT::{closure#0}
0
pageserver::metrics::EVICTIONS::{closure#0}
516
pageserver::metrics::EVICTIONS_WITH_LOW_RESIDENCE_DURATION::{closure#0}
516
pageserver::metrics::EVICTION_ITERATION_DURATION::{closure#0}
0
pageserver::metrics::GET_RECONSTRUCT_DATA_TIME::{closure#0}
510
pageserver::metrics::GET_VECTORED_LATENCY::{closure#0}
492
pageserver::metrics::GET_VECTORED_LATENCY::{closure#0}::{closure#0}
14760
pageserver::metrics::LAST_RECORD_LSN::{closure#0}
516
pageserver::metrics::LIVE_CONNECTIONS::{closure#0}
0
pageserver::metrics::NODE_UTILIZATION_SCORE::{closure#0}
0
pageserver::metrics::PAGE_CACHE::{closure#0}
264
pageserver::metrics::PAGE_CACHE::{closure#0}::{closure#0}
7920
pageserver::metrics::PAGE_CACHE::{closure#0}::{closure#0}::{closure#0}
63360
pageserver::metrics::PAGE_CACHE_ERRORS::{closure#0}
0
pageserver::metrics::PAGE_CACHE_READ_ACCESSES::{closure#0}
264
pageserver::metrics::PAGE_CACHE_READ_HITS::{closure#0}
264
pageserver::metrics::PAGE_CACHE_SIZE::{closure#0}
264
pageserver::metrics::PAGE_CACHE_SIZE_CURRENT_BYTES::{closure#0}
264
pageserver::metrics::PITR_HISTORY_SIZE::{closure#0}
516
pageserver::metrics::READ_NUM_LAYERS_VISITED::{closure#0}
0
pageserver::metrics::RECONSTRUCT_TIME::{closure#0}
510
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}
499
pageserver::metrics::REMOTE_PHYSICAL_SIZE::{closure#0}
516
pageserver::metrics::REMOTE_PHYSICAL_SIZE_GLOBAL::{closure#0}
516
pageserver::metrics::REMOTE_TIMELINE_CLIENT_BYTES_FINISHED_COUNTER::{closure#0}
498
pageserver::metrics::REMOTE_TIMELINE_CLIENT_BYTES_STARTED_COUNTER::{closure#0}
498
pageserver::metrics::REMOTE_TIMELINE_CLIENT_CALLS::{closure#0}
510
pageserver::metrics::RESIDENT_PHYSICAL_SIZE::{closure#0}
516
pageserver::metrics::RESIDENT_PHYSICAL_SIZE_GLOBAL::{closure#0}
504
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}
522
pageserver::metrics::SMGR_QUERY_STARTED_PER_TENANT_TIMELINE::{closure#0}
522
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL::{closure#0}
522
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL_BUCKETS::{closure#0}
522
pageserver::metrics::SMGR_QUERY_TIME_GLOBAL_BUCKETS::{closure#0}::{closure#0}
21402
pageserver::metrics::SMGR_QUERY_TIME_PER_TENANT_TIMELINE::{closure#0}
522
pageserver::metrics::STANDBY_HORIZON::{closure#0}
516
pageserver::metrics::STARTUP_DURATION::{closure#0}
0
pageserver::metrics::STARTUP_IS_LOADING::{closure#0}
0
pageserver::metrics::STORAGE_IO_SIZE::{closure#0}
594
pageserver::metrics::STORAGE_TIME_COUNT_PER_TIMELINE::{closure#0}
516
pageserver::metrics::STORAGE_TIME_GLOBAL::{closure#0}
516
pageserver::metrics::STORAGE_TIME_SUM_PER_TIMELINE::{closure#0}
516
pageserver::metrics::TENANT::{closure#0}
0
pageserver::metrics::TENANT_MANAGER::{closure#0}
6
pageserver::metrics::TENANT_STATE_METRIC::{closure#0}
522
pageserver::metrics::TENANT_SYNTHETIC_SIZE_METRIC::{closure#0}
18
pageserver::metrics::TENANT_TASK_EVENTS::{closure#0}
0
pageserver::metrics::TIMELINE_ARCHIVE_SIZE::{closure#0}
516
pageserver::metrics::TIMELINE_EPHEMERAL_BYTES::{closure#0}
504
pageserver::metrics::TIMELINE_LAYER_COUNT::{closure#0}
516
pageserver::metrics::TIMELINE_LAYER_SIZE::{closure#0}
516
pageserver::metrics::TOKIO_EXECUTOR_THREAD_COUNT::{closure#0}
504
pageserver::metrics::UNEXPECTED_ONDEMAND_DOWNLOADS::{closure#0}
0
pageserver::metrics::VALID_LSN_LEASE_COUNT::{closure#0}
516
pageserver::metrics::VEC_READ_NUM_LAYERS_VISITED::{closure#0}
504
pageserver::metrics::VISIBLE_PHYSICAL_SIZE::{closure#0}
516
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}
516
pageserver::metrics::initial_logical_size::DROP_CALCULATION::{closure#0}
516
pageserver::metrics::initial_logical_size::START_CALCULATION::{closure#0}
516
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}
264
pageserver::metrics::page_cache_eviction_metrics::ITERS_TOTAL_VEC::{closure#0}
264
pageserver::metrics::page_cache_eviction_metrics::observe
96615
pageserver::metrics::page_cache_eviction_metrics::observe::CALLS::{closure#0}
324
pageserver::metrics::page_cache_eviction_metrics::observe::ITERS_TOTAL::{closure#0}
324
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
504
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}
522
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_FINISH_PER_TENANT::{closure#0}
522
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_START::{closure#0}
522
pageserver::metrics::tenant_throttling::COUNT_ACCOUNTED_START_PER_TENANT::{closure#0}
522
pageserver::metrics::tenant_throttling::WAIT_COUNT::{closure#0}
522
pageserver::metrics::tenant_throttling::WAIT_COUNT_PER_TENANT::{closure#0}
522
pageserver::metrics::tenant_throttling::WAIT_USECS::{closure#0}
522
pageserver::metrics::tenant_throttling::WAIT_USECS_PER_TENANT::{closure#0}
522
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}
306
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