diff --git a/engine/runtime-instrument-id-execution/src/main/java/org/enso/interpreter/instrument/IdExecutionInstrument.java b/engine/runtime-instrument-id-execution/src/main/java/org/enso/interpreter/instrument/IdExecutionInstrument.java index 694500df0eb7..5aa79e08055f 100644 --- a/engine/runtime-instrument-id-execution/src/main/java/org/enso/interpreter/instrument/IdExecutionInstrument.java +++ b/engine/runtime-instrument-id-execution/src/main/java/org/enso/interpreter/instrument/IdExecutionInstrument.java @@ -186,12 +186,11 @@ public void onReturnValue(EventContext context, VirtualFrame frame, Object resul FunctionCallInfo cachedCall = cache.getCall(nodeId); ProfilingInfo[] profilingInfo = new ProfilingInfo[] {new ExecutionTime(nanoTimeElapsed)}; + System.out.println("onReturnValue " + nodeId + " value: " + result + " type: " + resultType); ExpressionValue expressionValue = new ExpressionValue( nodeId, result, resultType, cachedType, call, cachedCall, profilingInfo, false); - if (expressionValue.isTypeChanged() || expressionValue.isFunctionCallChanged()) { - syncState.setExpressionUnsync(nodeId); - } + syncState.setExpressionUnsync(nodeId); syncState.setVisualisationUnsync(nodeId); // Panics are not cached because a panic can be fixed by changing seemingly unrelated code, diff --git a/engine/runtime/src/main/scala/org/enso/interpreter/instrument/job/EnsureCompiledJob.scala b/engine/runtime/src/main/scala/org/enso/interpreter/instrument/job/EnsureCompiledJob.scala index 28bf43eb2768..f90c8fc5a057 100644 --- a/engine/runtime/src/main/scala/org/enso/interpreter/instrument/job/EnsureCompiledJob.scala +++ b/engine/runtime/src/main/scala/org/enso/interpreter/instrument/job/EnsureCompiledJob.scala @@ -325,10 +325,12 @@ final class EnsureCompiledJob(protected val files: Iterable[File]) val knownKeys = stack.top.cache.getWeights.entrySet val cachedKeys = stack.top.cache.getKeys val pendingKeys = new java.util.HashSet[UUID]() + knownKeys.forEach(e => { if (e.getValue > 0) { if (!cachedKeys.contains(e.getKey)) { pendingKeys.add(e.getKey) + System.out.println(" found key with " + e.getValue + " key: " + e.getKey) } } });