LCOV - code coverage report
Current view: top level - libs/utils/src/sync - heavier_once_cell.rs (source / functions) Coverage Total Hit
Test: 5e392a02abbad1ab595f4dba672e219a49f7f539.info Lines: 94.9 % 431 409
Test Date: 2025-04-11 22:43:24 Functions: 82.9 % 152 126

Function Name Sort by function name Hit count Sort by function hit count
<utils::sync::heavier_once_cell::InitPermit as core::fmt::Debug>::fmt 0
utils::sync::heavier_once_cell::tests::detached_init_smoke::{closure#0}::{closure#0} 0
utils::sync::heavier_once_cell::tests::detached_init_smoke::{closure#0}::{closure#0} 0
utils::sync::heavier_once_cell::tests::detached_init_smoke::{closure#0}::{closure#0}::{closure#0} 0
utils::sync::heavier_once_cell::tests::detached_init_smoke::{closure#0}::{closure#1} 0
utils::sync::heavier_once_cell::tests::detached_init_smoke::{closure#0}::{closure#1} 0
utils::sync::heavier_once_cell::tests::detached_init_smoke::{closure#0}::{closure#1}::{closure#0} 0
<utils::sync::heavier_once_cell::OnceCell<_>>::get_or_init_detached_measured::{closure#0} 1
>::get_or_init_detached_measured::{closure#0} 0
>::get_or_init_detached_measured::{closure#0} 1
utils::sync::heavier_once_cell::tests::init_take_deinit_scenario::<utils::sync::heavier_once_cell::tests::reproduce_init_take_deinit_race::{closure#0}::{closure#0}> 1
utils::sync::heavier_once_cell::tests::init_take_deinit_scenario::<utils::sync::heavier_once_cell::tests::reproduce_init_take_deinit_race::{closure#0}::{closure#0}>::{closure#0} 1
utils::sync::heavier_once_cell::tests::init_take_deinit_scenario::<utils::sync::heavier_once_cell::tests::reproduce_init_take_deinit_race::{closure#0}::{closure#0}>::{closure#0}::{closure#0}::{closure#0} 1
utils::sync::heavier_once_cell::tests::init_take_deinit_scenario::<utils::sync::heavier_once_cell::tests::reproduce_init_take_deinit_race::{closure#0}::{closure#0}>::{closure#0}::{closure#1}::{closure#0} 1
utils::sync::heavier_once_cell::tests::initialization_is_cancellation_safe::{closure#0}::{closure#0} 1
utils::sync::heavier_once_cell::tests::initialization_is_cancellation_safe::{closure#0}::{closure#0}::{closure#0} 1
utils::sync::heavier_once_cell::tests::many_initializers::{closure#0}::{closure#0}::{closure#0} 1
utils::sync::heavier_once_cell::tests::many_initializers::{closure#0}::{closure#0}::{closure#0}::{closure#0} 1
utils::sync::heavier_once_cell::tests::reinit_waits_for_deinit::{closure#0}::{closure#0} 1
utils::sync::heavier_once_cell::tests::reinit_with_deinit_permit 1
utils::sync::heavier_once_cell::tests::detached_init_smoke 2
utils::sync::heavier_once_cell::tests::detached_init_smoke 1
utils::sync::heavier_once_cell::tests::detached_init_smoke::{closure#0} 1
utils::sync::heavier_once_cell::tests::initialization_attemptable_until_ok 2
utils::sync::heavier_once_cell::tests::initialization_attemptable_until_ok 1
utils::sync::heavier_once_cell::tests::initialization_attemptable_until_ok::{closure#0} 1
utils::sync::heavier_once_cell::tests::initialization_attemptable_until_ok::{closure#0}::{closure#1} 2
utils::sync::heavier_once_cell::tests::initialization_attemptable_until_ok::{closure#0}::{closure#1} 1
utils::sync::heavier_once_cell::tests::initialization_attemptable_until_ok::{closure#0}::{closure#1}::{closure#0} 1
utils::sync::heavier_once_cell::tests::initialization_is_cancellation_safe 2
utils::sync::heavier_once_cell::tests::initialization_is_cancellation_safe 1
utils::sync::heavier_once_cell::tests::initialization_is_cancellation_safe::{closure#0} 1
utils::sync::heavier_once_cell::tests::initialization_is_cancellation_safe::{closure#0}::{closure#1} 2
utils::sync::heavier_once_cell::tests::initialization_is_cancellation_safe::{closure#0}::{closure#1} 1
utils::sync::heavier_once_cell::tests::initialization_is_cancellation_safe::{closure#0}::{closure#1}::{closure#0} 1
utils::sync::heavier_once_cell::tests::many_initializers 2
utils::sync::heavier_once_cell::tests::many_initializers 1
utils::sync::heavier_once_cell::tests::many_initializers::{closure#0} 1
utils::sync::heavier_once_cell::tests::reinit_waits_for_deinit 2
utils::sync::heavier_once_cell::tests::reinit_waits_for_deinit 1
utils::sync::heavier_once_cell::tests::reinit_waits_for_deinit::{closure#0} 1
utils::sync::heavier_once_cell::tests::reinit_waits_for_deinit::{closure#0}::{closure#1} 2
utils::sync::heavier_once_cell::tests::reinit_waits_for_deinit::{closure#0}::{closure#1} 1
utils::sync::heavier_once_cell::tests::reinit_waits_for_deinit::{closure#0}::{closure#1}::{closure#0} 1
utils::sync::heavier_once_cell::tests::reproduce_init_take_deinit_race 2
utils::sync::heavier_once_cell::tests::reproduce_init_take_deinit_race 1
utils::sync::heavier_once_cell::tests::reproduce_init_take_deinit_race::{closure#0} 1
utils::sync::heavier_once_cell::tests::reproduce_init_take_deinit_race::{closure#0}::{closure#0} 2
utils::sync::heavier_once_cell::tests::reproduce_init_take_deinit_race::{closure#0}::{closure#0}::{closure#0} 2
utils::sync::heavier_once_cell::tests::take_and_deinit_on_mut 2
utils::sync::heavier_once_cell::tests::take_and_deinit_on_mut 1
utils::sync::heavier_once_cell::tests::take_and_deinit_on_mut::{closure#0} 1
utils::sync::heavier_once_cell::tests::take_and_deinit_on_mut::{closure#0}::{closure#0} 2
utils::sync::heavier_once_cell::tests::take_and_deinit_on_mut::{closure#0}::{closure#0} 1
utils::sync::heavier_once_cell::tests::take_and_deinit_on_mut::{closure#0}::{closure#0}::{closure#0} 1
utils::sync::heavier_once_cell::tests::initialization_attemptable_until_ok::{closure#0}::{closure#0} 20
utils::sync::heavier_once_cell::tests::initialization_attemptable_until_ok::{closure#0}::{closure#0} 10
utils::sync::heavier_once_cell::tests::initialization_attemptable_until_ok::{closure#0}::{closure#0}::{closure#0} 10
<utils::sync::heavier_once_cell::OnceCell<_> as core::default::Default>::default 22
as core::default::Default>::default 0
as core::default::Default>::default 0
as core::default::Default>::default 1
as core::default::Default>::default 1
as core::default::Default>::default 1
as core::default::Default>::default 3
as core::default::Default>::default 16
<utils::sync::heavier_once_cell::OnceCell<pageserver::walredo::ProcessOnceCell>>::get_or_init_detached_measured::{closure#0} 60
>::get_or_init_detached_measured::{closure#0} 24
>::get_or_init_detached_measured::{closure#0} 36
<utils::sync::heavier_once_cell::OnceCell<_>>::set 68
>::set 0
>::set 4
>::set 24
>::set 40
<utils::sync::heavier_once_cell::OnceCell<_>>::set0 75
>::set0 0
>::set0 1
>::set0 1
>::set0 4
>::set0 5
>::set0 24
>::set0 40
<utils::sync::heavier_once_cell::CountWaitingInitializers<_> as core::ops::drop::Drop>::drop 81
as core::ops::drop::Drop>::drop 0
as core::ops::drop::Drop>::drop 1
as core::ops::drop::Drop>::drop 1
as core::ops::drop::Drop>::drop 3
as core::ops::drop::Drop>::drop 16
as core::ops::drop::Drop>::drop 24
as core::ops::drop::Drop>::drop 36
<utils::sync::heavier_once_cell::CountWaitingInitializers<_>>::start 81
>::start 0
>::start 1
>::start 1
>::start 3
>::start 16
>::start 24
>::start 36
<utils::sync::heavier_once_cell::Guard<_>>::take_and_deinit 97
>::take_and_deinit 0
>::take_and_deinit 1
>::take_and_deinit 4
>::take_and_deinit 12
>::take_and_deinit 80
utils::sync::heavier_once_cell::tests::many_initializers::{closure#0}::{closure#0} 100
<utils::sync::heavier_once_cell::OnceCell<_>>::initializer_count 108
>::initializer_count 0
>::initializer_count 108
<utils::sync::heavier_once_cell::OnceCell<_>>::get_or_init::<_, _, _> 119
>::get_or_init::<_, _, _> 0
>::get_or_init:: 1
>::get_or_init:: 1
>::get_or_init:: 1
>::get_or_init:: 1
>::get_or_init:: 1
>::get_or_init:: 1
>::get_or_init:: 1
>::get_or_init::>>>>>, core::pin::Pin>>>, core::convert::Infallible> 2
>::get_or_init:: 10
>::get_or_init:: 100
<utils::sync::heavier_once_cell::OnceCell<_>>::get_or_init::<_, _, _>::{closure#0} 119
>::get_or_init::<_, _, _>::{closure#0} 0
>::get_or_init::::{closure#0} 1
>::get_or_init::::{closure#0} 1
>::get_or_init::::{closure#0} 1
>::get_or_init::::{closure#0} 1
>::get_or_init::::{closure#0} 1
>::get_or_init::::{closure#0} 1
>::get_or_init::::{closure#0} 1
>::get_or_init::>>>>>, core::pin::Pin>>>, core::convert::Infallible>::{closure#0} 2
>::get_or_init::::{closure#0} 10
>::get_or_init::::{closure#0} 100
<utils::sync::heavier_once_cell::OnceCell<_>>::get_or_init_detached 202
>::get_or_init_detached 0
>::get_or_init_detached::{closure#0} 0
>::get_or_init_detached 1
>::get_or_init_detached::{closure#0} 1
>::get_or_init_detached 24
>::get_or_init_detached::{closure#0} 24
>::get_or_init_detached 76
>::get_or_init_detached::{closure#0} 76
<utils::sync::heavier_once_cell::Guard<_> as core::ops::deref::Deref>::deref 441
as core::ops::deref::Deref>::deref 0
as core::ops::deref::Deref>::deref 3
as core::ops::deref::Deref>::deref 5
as core::ops::deref::Deref>::deref 12
as core::ops::deref::Deref>::deref 100
as core::ops::deref::Deref>::deref 321
<utils::sync::heavier_once_cell::OnceCell<_>>::get 512
>::get 0
>::get 3
>::get 8
>::get 12
>::get 489
<utils::sync::heavier_once_cell::OnceCell<_>>::take_and_deinit 1416
>::take_and_deinit 0
>::take_and_deinit 3
>::take_and_deinit 1413
<utils::sync::heavier_once_cell::Inner<_>>::take_and_deinit 1513
>::take_and_deinit 0
>::take_and_deinit 1
>::take_and_deinit 3
>::take_and_deinit 4
>::take_and_deinit 12
>::take_and_deinit 1493
<utils::sync::heavier_once_cell::Inner<_> as core::default::Default>::default 1529
as core::default::Default>::default 0
as core::default::Default>::default 1
as core::default::Default>::default 2
as core::default::Default>::default 4
as core::default::Default>::default 5
as core::default::Default>::default 28
as core::default::Default>::default 1489
<utils::sync::heavier_once_cell::InitPermit as core::ops::drop::Drop>::drop 1586
<utils::sync::heavier_once_cell::OnceCell<_>>::new 3878
>::new 0
>::new 2
>::new 3876
<utils::sync::heavier_once_cell::Guard<_> as core::ops::deref::DerefMut>::deref_mut 481496
as core::ops::deref::DerefMut>::deref_mut 0
as core::ops::deref::DerefMut>::deref_mut 481496
<utils::sync::heavier_once_cell::OnceCell<_>>::get_or_init_detached_measured 481537
>::get_or_init_detached_measured 0
>::get_or_init_detached_measured 1
>::get_or_init_detached_measured 24
>::get_or_init_detached_measured 481512

Generated by: LCOV version 2.1-beta