本文整理了Java中org.jruby.Ruby.incrementBacktraceCount
方法的一些代码示例,展示了Ruby.incrementBacktraceCount
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ruby.incrementBacktraceCount
方法的具体详情如下:
包路径:org.jruby.Ruby
类名称:Ruby
方法名:incrementBacktraceCount
[英]Increment the count of backtraces generated by code in this runtime.
[中]增加代码在此运行时生成的回溯计数。
代码示例来源:origin: org.jruby/jruby-complete
/**
* Gather backtrace data for a normal Ruby trace.
*
* @param context
* @return
*/
public BacktraceData getBacktraceData(ThreadContext context) {
BacktraceData data = getBacktraceData(context, Thread.currentThread().getStackTrace());
context.runtime.incrementBacktraceCount();
if (RubyInstanceConfig.LOG_BACKTRACES) logBacktrace(context.runtime, data.getBacktrace(context.runtime));
return data;
}
代码示例来源:origin: org.jruby/jruby-core
/**
* Gather backtrace data for a normal Ruby trace.
*
* @param context
* @return
*/
public BacktraceData getBacktraceData(ThreadContext context) {
BacktraceData data = getBacktraceData(context, Thread.currentThread().getStackTrace());
context.runtime.incrementBacktraceCount();
if (RubyInstanceConfig.LOG_BACKTRACES) logBacktrace(context.runtime, data.getBacktrace(context.runtime));
return data;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/**
* Gather backtrace data for a normal Ruby trace.
*
* @param context
* @param nativeException
* @return
*/
public BacktraceData getBacktraceData(ThreadContext context, boolean nativeException) {
BacktraceData data = getBacktraceData(context, Thread.currentThread().getStackTrace(), nativeException);
context.runtime.incrementBacktraceCount();
if (RubyInstanceConfig.LOG_BACKTRACES) logBacktrace(data.getBacktrace(context.runtime));
return data;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
/**
* Gather backtrace data for a normal Ruby trace.
*
* @param context
* @param nativeException
* @return
*/
public BacktraceData getBacktraceData(ThreadContext context, boolean nativeException) {
BacktraceData data = getBacktraceData(context, Thread.currentThread().getStackTrace(), nativeException);
context.runtime.incrementBacktraceCount();
if (RubyInstanceConfig.LOG_BACKTRACES) logBacktrace(data.getBacktrace(context.runtime));
return data;
}
代码示例来源:origin: org.jruby/jruby-complete
/**
* Gather backtrace data for an integrated trace if the current gather type is "NORMAL", otherwise use the
* current gather type.
*
* @param context
* @param javaTrace
* @return
*/
public BacktraceData getIntegratedBacktraceData(ThreadContext context, StackTraceElement[] javaTrace) {
Gather useGather = this;
if (useGather == NORMAL) {
useGather = INTEGRATED;
}
BacktraceData data = useGather.getBacktraceData(context, javaTrace);
context.runtime.incrementBacktraceCount();
if (RubyInstanceConfig.LOG_BACKTRACES) logBacktrace(context.runtime, data.getBacktrace(context.runtime));
return data;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/**
* Gather backtrace data for an integrated trace if the current gather type is "NORMAL", otherwise use the
* current gather type.
*
* @param context
* @param javaTrace
* @return
*/
public BacktraceData getIntegratedBacktraceData(ThreadContext context, StackTraceElement[] javaTrace) {
Gather useGather = this;
if (useGather == NORMAL) {
useGather = INTEGRATED;
}
BacktraceData data = useGather.getBacktraceData(context, javaTrace, false);
context.runtime.incrementBacktraceCount();
if (RubyInstanceConfig.LOG_BACKTRACES) logBacktrace(data.getBacktrace(context.runtime));
return data;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
/**
* Gather backtrace data for an integrated trace if the current gather type is "NORMAL", otherwise use the
* current gather type.
*
* @param context
* @param javaTrace
* @return
*/
public BacktraceData getIntegratedBacktraceData(ThreadContext context, StackTraceElement[] javaTrace) {
Gather useGather = this;
if (useGather == NORMAL) {
useGather = INTEGRATED;
}
BacktraceData data = useGather.getBacktraceData(context, javaTrace, false);
context.runtime.incrementBacktraceCount();
if (RubyInstanceConfig.LOG_BACKTRACES) logBacktrace(data.getBacktrace(context.runtime));
return data;
}
代码示例来源:origin: org.jruby/jruby-core
/**
* Gather backtrace data for an integrated trace if the current gather type is "NORMAL", otherwise use the
* current gather type.
*
* @param context
* @param javaTrace
* @return
*/
public BacktraceData getIntegratedBacktraceData(ThreadContext context, StackTraceElement[] javaTrace) {
Gather useGather = this;
if (useGather == NORMAL) {
useGather = INTEGRATED;
}
BacktraceData data = useGather.getBacktraceData(context, javaTrace);
context.runtime.incrementBacktraceCount();
if (RubyInstanceConfig.LOG_BACKTRACES) logBacktrace(context.runtime, data.getBacktrace(context.runtime));
return data;
}
内容来源于网络,如有侵权,请联系作者删除!