From eeff6f736319d8713c8733b6fdccc74841243cf1 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Thu, 24 Oct 2024 08:42:22 +0200 Subject: [PATCH] trace --- rs/pocket_ic_server/src/state_api/state.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rs/pocket_ic_server/src/state_api/state.rs b/rs/pocket_ic_server/src/state_api/state.rs index 522190fc6ab..d862a63c02c 100644 --- a/rs/pocket_ic_server/src/state_api/state.rs +++ b/rs/pocket_ic_server/src/state_api/state.rs @@ -1435,7 +1435,9 @@ impl ApiState { let new_state_label = pocket_ic.get_state_label(); // add result to graph, but grab instance lock first! let instances = instances.blocking_read(); + println!("waiting to grab graph: old={} op_id={}", old_state_label, op_id); let mut graph_guard = graph.blocking_write(); + println!("grabbed graph: old={} op_id={}", old_state_label, op_id); let cached_computations = graph_guard.entry(old_state_label.clone()).or_default(); cached_computations