static L computerInjectionsData() ctex { long time = sysNow(); new L l; for (DialogIO vm : talkToAllVMs()) { pcall { int vmPort = vm.getPort(); S x = vm.ask("get injections"); S mem = dropUntilColon(vm.ask("how much memory are you consuming")); //print("VM " + vmPort + " injections: " + x); L injections = cast safeUnstructure(x); for (O inj : injections) pcall{ S progID = formatSnippetID((S) get(inj, "progID")); l.add(litorderedmap( "Program name", getSnippetTitle(progID), "Program ID", progID, "VM Size (Java)", mem, "VM", vmPort, "More info", isTrue(get(inj, "mainDone")) ? "main done" : "main running", "Injection ID", get(inj, "injectionID"))); } } vm.close(); } done2(time, "Scanned " + n(l, "VMs")); ret l; }