MCPcopy Create free account
hub / github.com/badvision/jace / dumpTrace

Method dumpTrace

src/main/java/jace/core/CPU.java:70–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 public void dumpTrace() {
71 whileSuspended(()->{
72 ArrayList<String> newLog = new ArrayList<>();
73 ArrayList<String> oldLog = traceLog;
74 traceLog = newLog;
75 LOG.log(Level.INFO, "Most recent {0} instructions:", traceLength);
76 oldLog.forEach(LOG::info);
77 oldLog.clear();
78 });
79 }
80
81 public void setDebug(Debugger d) {
82 debugger = d;

Callers 1

BRKMethod · 0.80

Calls 2

whileSuspendedMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected