Skip to content

Commit

Permalink
#59 show thread names
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 19, 2018
1 parent 513b0f3 commit 656d779
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/io/wring/agents/Routine.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.cactoos.func.FuncOf;
import org.cactoos.func.FuncWithFallback;
import org.cactoos.func.RunnableOf;
import org.cactoos.iterable.Mapped;

/**
* Routine.
Expand Down Expand Up @@ -136,9 +137,10 @@ this.threads, new VerboseThreads("routine-run")
Routine.close(runner);
}
Logger.info(
this, "%d pipes processed in %[ms]s, threads=%d",
this, "%d pipes processed in %[ms]s, threads=%d: %s",
futures.size(), System.currentTimeMillis() - start,
Thread.getAllStackTraces().size()
Thread.getAllStackTraces().size(),
new Mapped<>(Thread::getName, Thread.getAllStackTraces().keySet())
);
}

Expand Down

0 comments on commit 656d779

Please sign in to comment.