org.jruby.Ruby.incrementBacktraceCount()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中org.jruby.Ruby.incrementBacktraceCount方法的一些代码示例,展示了Ruby.incrementBacktraceCount的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ruby.incrementBacktraceCount方法的具体详情如下:
包路径:org.jruby.Ruby
类名称:Ruby
方法名:incrementBacktraceCount

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;
}

相关文章

Ruby类方法