Skip to content

Commit

Permalink
cleaner thread logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nmacedo committed Nov 30, 2020
1 parent a9f5832 commit 513bc82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/main/java/pt/haslab/alloy4fun/RestApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void remove(String str) {
Runtime rt = Runtime.getRuntime();
long usedMB = (rt.totalMemory() - rt.freeMemory()) / 1024 / 1024;
LOGGER.debug("Memory used: " + usedMB+"mb.");
LOGGER.debug("Number of active threads: " + Thread.getAllStackTraces());
LOGGER.debug("Number of active threads: " + Thread.activeCount());
}

public static void add(String str, A4Solution ans, Command cm) {
Expand All @@ -44,7 +44,7 @@ public static void add(String str, A4Solution ans, Command cm) {
Runtime rt = Runtime.getRuntime();
long usedMB = (rt.totalMemory() - rt.freeMemory()) / 1024 / 1024;
LOGGER.debug("Memory used: " + usedMB+"mb.");
LOGGER.debug("Number of active threads: " + Thread.getAllStackTraces());
LOGGER.debug("Number of active threads: " + Thread.activeCount());
}

public static A4Solution getSol(String str) {
Expand Down

0 comments on commit 513bc82

Please sign in to comment.