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

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

本文整理了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

  1. /**
  2. * Displays trace of each methods called
  3. * @param onOff A boolean that when set to true enables method call
  4. * tracing and when false disables instruction tracing.
  5. */
  6. public static void VMtraceMethodCalls( boolean onOff)
  7. {
  8. if( LDAP_DEBUG) {
  9. if( VMtraceMethodCalls)
  10. run.traceMethodCalls( onOff);
  11. }
  12. return;
  13. }

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

  1. /**
  2. * Enable or disable tracing method calls at the Runtime level.
  3. *
  4. * @param flag whether to enable trace
  5. */
  6. public void traceMethodCalls(final Boolean flag)
  7. {
  8. Runtime.getRuntime().traceMethodCalls(flag.booleanValue());
  9. }

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

  1. /**
  2. * Enable or disable tracing method calls at the Runtime level.
  3. *
  4. * @param flag whether to enable trace
  5. */
  6. public void traceMethodCalls(final Boolean flag)
  7. {
  8. Runtime.getRuntime().traceMethodCalls(flag.booleanValue());
  9. }

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

  1. Runtime r = Runtime.getRuntime();
  2. r.traceInstructions(true);
  3. r.traceMethodCalls(true);
  4. r.exec("your command")

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

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

相关文章