Skip to content

Commit

Permalink
fixed remaining webdebuggerlogger overhead
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamZsofi committed Oct 14, 2023
1 parent ff3256d commit 0319f72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public SafetyResult<S, A> check(final P initPrec) {
abstractorTime += stopwatch.elapsed(TimeUnit.MILLISECONDS) - abstractorStartTime;
logger.write(Level.MAINSTEP, "| Checking abstraction done, result: %s%n", abstractorResult);

if (wdl != null) {
if (WebDebuggerLogger.enabled()) {
String argGraph = JSONWriter.getInstance().writeString(ArgVisualizer.getDefault().visualize(arg));
String precString = prec.toString();
wdl.addIteration(iteration, argGraph, precString);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public static void enableWebDebuggerLogger() {
enabled = true;
}

public static Boolean enabled() {
return enabled;
}

public static WebDebuggerLogger getInstance() {
return instance;
}
Expand Down

0 comments on commit 0319f72

Please sign in to comment.