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

Method begin_const

crates/kernel/src/tc.rs:922–926  ·  view source on GitHub ↗
(&mut self, id: &KId<M>)

Source from the content-addressed store, hash-verified

920 }
921 }
922
923 /// Sharding profiler: mark `id` as the constant now being checked, so its
924 /// heartbeats and delta-unfold edges are attributed correctly. No-op unless a
925 /// `profile_sink` is installed. Called right after each per-constant `reset`.
926 #[inline]
927 pub(crate) fn begin_const(&mut self, id: &KId<M>) {
928 if self.env.profile_sink.is_some() {
929 self.cur_const = Some(id.addr.clone());

Callers 3

check_inductive_blockMethod · 0.80
check_recursor_blockMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected