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

Class BlockEntry

crates/kernel/src/profile.rs:125–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 }
124}
125
126/// Read and reset the thread-local op counters (call at each constant boundary).
127pub fn take_op_counts() -> OpCounts {
128 #[cfg(not(target_os = "zkvm"))]
129 {
130 OpCounts {
131 subst_nodes: SUBST_NODES.with(|c| c.replace(0)),
132 whnf_calls: WHNF_CALLS.with(|c| c.replace(0)),
133 def_eq_calls: DEF_EQ_CALLS.with(|c| c.replace(0)),
134 nat_arith: NAT_ARITH.with(|c| c.replace(0)),
135 intern_nodes: INTERN_NODES.with(|c| c.replace(0)),
136 }
137 }
138 #[cfg(target_os = "zkvm")]
139 OpCounts::default()
140}
141

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected