Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'alin/MR-572-CallContextManager-stats' into 'master'
feat: [MR-572] Add response slot and memory reservation stats to `CallContextManager` The equivalent stats are maintained by `CanisterQueues` (where they're just some counters that cannot be validated). In `CallContextManager` we can have direct debug_asserts to validate them against the actual counts of callbacks or unresponded call contexts (and compute them from scratch on state loading). And in-between rounds (or, more precisely, at the end of the round) we can directly compare the two sets of stats (e.g. as part of the invariant check that the scheduler performs). Plus initialize the `CanisterQueues` stats from the `CallContextManager` stats on checkpoint loading (instead of blindly persisting them). See merge request dfinity-lab/public/ic!18976
- Loading branch information