Skip to content

Commit

Permalink
Merge pull request #3302 from stewartmatheson/updating_doco
Browse files Browse the repository at this point in the history
Updated doc for dumpThreads method in Runtime
  • Loading branch information
kares committed Nov 3, 2016
2 parents b64a5ee + f3f3602 commit 56feb7b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion core/src/main/java/org/jruby/management/Runtime.java
Expand Up @@ -71,7 +71,17 @@ public String rawThreadDump() {
public String fullThreadDump() {
return dumpThreads(Gather.FULL);
}



/**
*
* Dump all the threads that are known to ruby. We first discover any running
* threads and then raise an exception in each thread adding the current thread
* and it's context to the backtrace.
*
* @param gather The level of backtrace that get's raised in each thread
* @return [String] A string represnetation of the threds that have been dumped with included backtrace.
*/
public String dumpThreads(Gather gather) {
Ruby ruby = this.ruby.get();
RubyThread[] thrs = ruby.getThreadService().getActiveRubyThreads();
Expand Down

0 comments on commit 56feb7b

Please sign in to comment.