Mercurial > hg > truffle
diff graal/com.oracle.max.graal.debug/src/com/oracle/max/graal/debug/internal/DebugScope.java @ 4363:7462c3600c3a
Draft changes to the graph plotting.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 24 Jan 2012 20:32:23 +0100 |
parents | ed69fd347566 |
children | efc430d943c0 |
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.debug/src/com/oracle/max/graal/debug/internal/DebugScope.java Fri Jan 20 16:26:35 2012 +0100 +++ b/graal/com.oracle.max.graal.debug/src/com/oracle/max/graal/debug/internal/DebugScope.java Tue Jan 24 20:32:23 2012 +0100 @@ -97,10 +97,10 @@ public void dump(Object object, String formatString, Object[] args) { if (isDumpEnabled()) { - String message = String.format(formatString, args); - for (Object o : Debug.context()) { - if (o instanceof DebugDumpHandler) { - DebugDumpHandler dumpHandler = (DebugDumpHandler) o; + DebugConfig config = getConfig(); + if (config != null) { + String message = String.format(formatString, args); + for (DebugDumpHandler dumpHandler : config.dumpHandlers()) { dumpHandler.dump(object, message); } } @@ -119,8 +119,8 @@ } instanceTL.set(newChild); T result = null; - updateFlags(); - log("Starting scope %s", newChild.getQualifiedName()); + newChild.updateFlags(); + newChild.log("Starting scope %s", newChild.getQualifiedName()); try { if (runnable != null) { runnable.run();