LCOV - code coverage report
Current view:
top level
-
storage_controller/src
- scheduler.rs
(
source
/ functions)
Coverage
Total
Hit
Test:
49aa928ec5b4b510172d8b5c6d154da28e70a46c.info
Lines:
88.3 %
665
587
Test Date:
2024-11-13 18:23:39
Functions:
75.8 %
66
50
Function Name
Hit count
<storage_controller::scheduler::ScheduleError as core::fmt::Display>::fmt
0
<storage_controller::scheduler::Scheduler>::any_available_node
0
<storage_controller::scheduler::Scheduler>::compute_fill_requirement
0
<storage_controller::scheduler::Scheduler>::expected_attached_shard_count
0
<storage_controller::scheduler::Scheduler>::expected_attached_shard_count::{closure#0}
0
<storage_controller::scheduler::Scheduler>::node_remove
0
<storage_controller::scheduler::Scheduler>::nodes_by_attached_shard_count
0
<storage_controller::scheduler::Scheduler>::nodes_by_attached_shard_count::{closure#0}
0
<storage_controller::scheduler::Scheduler>::nodes_by_attached_shard_count::{closure#1}
0
<storage_controller::scheduler::Scheduler>::schedule_shard::<storage_controller::scheduler::AttachedShardTag>::{closure#4}
0
::schedule_shard::
::{closure#4}
0
::schedule_shard::
::{closure#5}
0
::schedule_shard::
::{closure#4}
0
::schedule_shard::
::{closure#5}
0
<utils::http::error::ApiError as core::convert::From<storage_controller::scheduler::ScheduleError>>::from
0
<storage_controller::scheduler::Scheduler>::consistency_check::<std::collections::hash::map::Values<utils::id::NodeId, storage_controller::node::Node>, core::array::iter::IntoIter<&storage_controller::tenant_shard::TenantShard, 1>>
1
::consistency_check::
, alloc::collections::btree::map::Values
>
0
::consistency_check::
, core::array::iter::IntoIter<&storage_controller::tenant_shard::TenantShard, 1>>
1
storage_controller::scheduler::tests::az_scheduling
1
storage_controller::scheduler::tests::scheduler_basic
1
storage_controller::scheduler::tests::scheduler_basic::{closure#0}
1
storage_controller::scheduler::tests::scheduler_utilization
1
<storage_controller::scheduler::Scheduler>::node_preferred::{closure#2}
2
<storage_controller::scheduler::SchedulerNode as core::cmp::PartialEq>::eq
3
<storage_controller::scheduler::Scheduler>::node_preferred::{closure#0}
4
<storage_controller::scheduler::Scheduler>::node_preferred::{closure#0}::{closure#0}
4
<storage_controller::scheduler::Scheduler>::node_preferred::{closure#1}
4
storage_controller::scheduler::tests::az_scheduling::assert_scheduler_chooses::<storage_controller::scheduler::AttachedShardTag>
6
storage_controller::scheduler::tests::az_scheduling::assert_scheduler_chooses::
3
storage_controller::scheduler::tests::az_scheduling::assert_scheduler_chooses::
3
storage_controller::scheduler::tests::scheduler_utilization::assert_scheduler_chooses
11
<storage_controller::scheduler::Scheduler>::get_node_attached_shard_count
12
<storage_controller::scheduler::Scheduler>::get_node_shard_count
12
<storage_controller::scheduler::AffinityScore as core::ops::arith::Add>::add
24
<storage_controller::scheduler::Scheduler>::new::<_>
60
::new::<_>
0
::new::
>
8
::new::
>
52
storage_controller::scheduler::test_utils::make_test_nodes
60
<storage_controller::scheduler::ScheduleContext>::get_node_affinity
69
<storage_controller::scheduler::ScheduleContext>::get_node_attachments
69
<storage_controller::scheduler::Scheduler>::node_upsert
209
storage_controller::scheduler::test_utils::make_test_nodes::{closure#0}
230
<storage_controller::scheduler::ScheduleMode as core::default::Default>::default
5021
<storage_controller::scheduler::NodeSecondarySchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::node_id
12529
<storage_controller::scheduler::NodeAttachmentSchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::node_id
12531
<storage_controller::scheduler::ScheduleContext>::push_attached
12555
<storage_controller::scheduler::ScheduleContext>::avoid
12563
<storage_controller::scheduler::Scheduler>::node_preferred
25030
<storage_controller::scheduler::Scheduler>::compute_node_scores::<storage_controller::scheduler::NodeSecondarySchedulingScore>
25068
::compute_node_scores::
12531
::compute_node_scores::
12537
<storage_controller::scheduler::Scheduler>::schedule_shard::<storage_controller::scheduler::AttachedShardTag>
25068
::schedule_shard::
12531
::schedule_shard::
12537
<storage_controller::scheduler::AffinityScore>::inc
25118
<storage_controller::scheduler::SecondaryAzMatch as core::cmp::Ord>::cmp
33674
<storage_controller::scheduler::SecondaryAzMatch as core::cmp::PartialOrd>::partial_cmp
33674
<storage_controller::scheduler::NodeSecondarySchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::generate
37549
<storage_controller::scheduler::NodeSecondarySchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::is_overloaded
37549
<storage_controller::scheduler::AttachmentAzMatch as core::cmp::Ord>::cmp
47032
<storage_controller::scheduler::AttachmentAzMatch as core::cmp::PartialOrd>::partial_cmp
47032
<storage_controller::scheduler::NodeAttachmentSchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::generate
50077
<storage_controller::scheduler::NodeAttachmentSchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::is_overloaded
50077
<storage_controller::scheduler::Scheduler>::update_node_ref_counts
50135
<storage_controller::scheduler::SecondaryAzMatch as core::cmp::Ord>::cmp::{closure#0}
67348
<storage_controller::scheduler::AzMatch>::new
87626
<storage_controller::scheduler::Scheduler>::schedule_shard::<storage_controller::scheduler::AttachedShardTag>::{closure#0}
87626
::schedule_shard::
::{closure#0}
37549
::schedule_shard::
::{closure#0}
50077
<storage_controller::scheduler::AttachmentAzMatch as core::cmp::Ord>::cmp::{closure#0}
94064
<storage_controller::scheduler::Scheduler>::compute_node_scores::<storage_controller::scheduler::NodeSecondarySchedulingScore>::{closure#0}
100181
::compute_node_scores::
::{closure#0}
50078
::compute_node_scores::
::{closure#0}
50103
Generated by:
LCOV version 2.1-beta