public String fullThreadDump() { return dumpThreads(Gather.FULL); }
public String dumpThreads(Gather gather) { Ruby ruby = this.ruby.get(); RubyThread[] thrs = ruby.getThreadService().getActiveRubyThreads(); StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); pw.println("All threads known to Ruby instance " + ruby.hashCode()); pw.println(); for (RubyThread th : thrs) { dumpThread(ruby, th, gather, pw); } return sw.toString(); }
this.beanManager.register(parserStats); this.beanManager.register(new ClassCache(this)); this.beanManager.register(new org.jruby.management.Runtime(this));
public String dumpThreads(Gather gather) { Ruby ruby = this.ruby.get(); RubyThread[] thrs = ruby.getThreadService().getActiveRubyThreads(); StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); pw.println("All threads known to Ruby instance " + ruby.hashCode()); pw.println(); for (RubyThread th : thrs) { dumpThread(ruby, th, gather, pw); } return sw.toString(); }
this.beanManager.register(parserStats); this.beanManager.register(new ClassCache(this)); this.beanManager.register(new org.jruby.management.Runtime(this));
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(); StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); pw.println("All threads known to Ruby instance " + ruby.hashCode()); pw.println(); for (RubyThread th : thrs) { dumpThread(ruby, th, gather, pw); } return sw.toString(); }
this.runtimeBean = new org.jruby.management.Runtime(this);
public String rawThreadDump() { return dumpThreads(Gather.RAW); }
/** * * 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(); StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); pw.println("All threads known to Ruby instance " + ruby.hashCode()); pw.println(); for (RubyThread th : thrs) { dumpThread(ruby, th, gather, pw); } return sw.toString(); }
this.runtimeBean = new org.jruby.management.Runtime(this);
public String rawThreadDump() { return dumpThreads(Gather.RAW); }
public String fullThreadDump() { return dumpThreads(Gather.FULL); }
public String threadDump() { return dumpThreads(Gather.NORMAL); }
public String threadDump() { return dumpThreads(Gather.NORMAL); }
public String fullThreadDump() { return dumpThreads(Gather.FULL); }
public String threadDump() { return dumpThreads(Gather.NORMAL); }
public String rawThreadDump() { return dumpThreads(Gather.RAW); }
public String threadDump() { return dumpThreads(Gather.NORMAL); }
public String rawThreadDump() { return dumpThreads(Gather.RAW); }