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

Method log_mem_summary

crates/ffi/src/kernel.rs:2594–2612  ·  view source on GitHub ↗

Print a one-shot summary of memory-related telemetry collected during the run. No-op when `IX_KERNEL_CHECK_MEM_STATS` is disabled.

(&self)

Source from the content-addressed store, hash-verified

2592 Ok(report) => {
2593 eprintln!("[rs_shard]\n{report}");
2594 LeanIOResult::ok(LeanOwned::box_usize(0))
2595 },
2596 Err(e) => LeanIOResult::error_string(&format!("rs_shard_esp_cap: {e}")),
2597 }
2598}
2599
2600#[cfg(test)]
2601mod tests {
2602 use super::{compact_in_flight_label, resolve_kernel_check_workers_from};
2603
2604 #[test]
2605 fn explicit_kernel_check_workers_wins_when_positive() {
2606 assert_eq!(
2607 resolve_kernel_check_workers_from(3, false, Some("8"), true, 2),
2608 8
2609 );
2610 }
2611
2612 #[test]
2613 fn zero_or_invalid_worker_override_falls_through() {
2614 assert_eq!(
2615 resolve_kernel_check_workers_from(10, true, Some("0"), false, 4),

Callers 2

run_anon_checks_parallelFunction · 0.80

Calls 3

current_rss_mibFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected