java.lang.Runtime.traceMethodCalls()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(163)

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

Runtime.traceMethodCalls介绍

[英]Switches the output of debug information for methods on or off.
[中]打开或关闭方法的调试信息输出。

代码示例

代码示例来源:origin: com.novell.ldap/jldap

/**
*    Displays trace of each methods called
* @param onOff    A boolean that when set to true enables method call
* tracing and when false disables instruction tracing.
*/
public static void VMtraceMethodCalls( boolean onOff)
{
  if( LDAP_DEBUG) {
    if( VMtraceMethodCalls)
      run.traceMethodCalls( onOff);
  }
  return;
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-bootstrap

/**
* Enable or disable tracing method calls at the Runtime level.
* 
* @param flag whether to enable trace
*/
public void traceMethodCalls(final Boolean flag)
{
 Runtime.getRuntime().traceMethodCalls(flag.booleanValue());
}

代码示例来源:origin: org.jboss.bootstrap/jboss-bootstrap

/**
* Enable or disable tracing method calls at the Runtime level.
* 
* @param flag whether to enable trace
*/
public void traceMethodCalls(final Boolean flag)
{
 Runtime.getRuntime().traceMethodCalls(flag.booleanValue());
}

代码示例来源:origin: stackoverflow.com

Runtime r = Runtime.getRuntime();
r.traceInstructions(true);
r.traceMethodCalls(true);
r.exec("your command")

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

} else if (lcArg.equals ("trace")) {
  Runtime.getRuntime ().traceMethodCalls (true);

相关文章