LCOV - code coverage report
Current view:
top level
-
storage_controller/src
- scheduler.rs
(
source
/ functions)
Coverage
Total
Hit
Test:
4f58e98c51285c7fa348e0b410c88a10caf68ad2.info
Lines:
89.3 %
736
657
Test Date:
2025-01-07 20:58:07
Functions:
79.5 %
73
58
Function Name
Hit count
<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::az_scheduling_for_new_tenant
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::tests::az_scheduling_for_new_tenant::set_utilization
2
<storage_controller::scheduler::ScheduleContext>::attach_count
3
<storage_controller::scheduler::ScheduleContext>::new
3
<storage_controller::scheduler::Scheduler>::get_az_for_new_tenant
3
<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::Scheduler>::get_az_for_new_tenant::{closure#1}
6
<storage_controller::scheduler::Scheduler>::get_az_for_new_tenant::{closure#2}
6
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>::get_az_for_new_tenant::{closure#0}
34
<storage_controller::scheduler::Scheduler>::new::<_>
62
::new::<_>
0
::new::
>
10
::new::
>
52
storage_controller::scheduler::test_utils::make_test_nodes
62
<storage_controller::scheduler::ScheduleContext>::get_node_affinity
69
<storage_controller::scheduler::ScheduleContext>::get_node_attachments
69
<storage_controller::scheduler::Scheduler>::node_upsert
211
storage_controller::scheduler::test_utils::make_test_nodes::{closure#0}
239
<storage_controller::scheduler::ScheduleMode as core::default::Default>::default
5022
<storage_controller::scheduler::NodeSecondarySchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::node_id
12535
<storage_controller::scheduler::NodeAttachmentSchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::node_id
12537
<storage_controller::scheduler::ScheduleContext>::push_attached
12567
<storage_controller::scheduler::ScheduleContext>::avoid
12575
<storage_controller::scheduler::Scheduler>::node_preferred
25042
<storage_controller::scheduler::Scheduler>::compute_node_scores::<storage_controller::scheduler::NodeSecondarySchedulingScore>
25080
::compute_node_scores::
12537
::compute_node_scores::
12543
<storage_controller::scheduler::Scheduler>::schedule_shard::<storage_controller::scheduler::AttachedShardTag>
25080
::schedule_shard::
12537
::schedule_shard::
12543
<storage_controller::scheduler::AffinityScore>::inc
25142
<storage_controller::scheduler::SecondaryAzMatch as core::cmp::Ord>::cmp
33355
<storage_controller::scheduler::SecondaryAzMatch as core::cmp::PartialOrd>::partial_cmp
33355
<storage_controller::scheduler::NodeSecondarySchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::generate
37561
<storage_controller::scheduler::NodeSecondarySchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::is_overloaded
37561
<storage_controller::scheduler::AttachmentAzMatch as core::cmp::Ord>::cmp
46817
<storage_controller::scheduler::AttachmentAzMatch as core::cmp::PartialOrd>::partial_cmp
46817
<storage_controller::scheduler::NodeAttachmentSchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::generate
50095
<storage_controller::scheduler::NodeAttachmentSchedulingScore as storage_controller::scheduler::NodeSchedulingScore>::is_overloaded
50095
<storage_controller::scheduler::Scheduler>::update_node_ref_counts
50159
<storage_controller::scheduler::SecondaryAzMatch as core::cmp::Ord>::cmp::{closure#0}
66710
<storage_controller::scheduler::AzMatch>::new
87656
<storage_controller::scheduler::Scheduler>::schedule_shard::<storage_controller::scheduler::AttachedShardTag>::{closure#0}
87656
::schedule_shard::
::{closure#0}
37561
::schedule_shard::
::{closure#0}
50095
<storage_controller::scheduler::AttachmentAzMatch as core::cmp::Ord>::cmp::{closure#0}
93634
<storage_controller::scheduler::Scheduler>::compute_node_scores::<storage_controller::scheduler::NodeSecondarySchedulingScore>::{closure#0}
100217
::compute_node_scores::
::{closure#0}
50096
::compute_node_scores::
::{closure#0}
50121
Generated by:
LCOV version 2.1-beta