MCPcopy Create free account
hub / github.com/argumentcomputer/ix / consumers_reverse_adjacency

Function consumers_reverse_adjacency

crates/kernel/src/profile.rs:554–563  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552 fn addr(byte: u8) -> Address {
553 Address::from_slice(&[byte; 32]).unwrap()
554 }
555
556 fn ops(subst: u64) -> OpCounts {
557 OpCounts { subst_nodes: subst, ..OpCounts::default() }
558 }
559
560 fn sample() -> BlockProfile {
561 let mut b = ProfileBuilder::new();
562 // Three blocks a<b<c by address ordering.
563 b.block(addr(1), 100, 10, 1, ops(50));
564 b.block(addr(2), 200, 20, 3, ops(100));
565 b.block(addr(3), 300, 30, 1, ops(150));
566 // a unfolds b and c; c unfolds b; self-edge ignored.

Callers

nothing calls this directly

Calls 2

sampleFunction · 0.85
consumers_csrMethod · 0.80

Tested by

no test coverage detected