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

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

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

Runtime.traceInstructions介绍

[英]Switches the output of debug information for instructions on or off. On Android, this method does nothing.
[中]打开或关闭指令的调试信息输出。在Android上,这种方法没有任何作用。

代码示例

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

  1. /**
  2. * Displays trace of each instruction executed in the virtual machine
  3. * @param onOff A boolean that when set to true enables instruction
  4. * tracing and when false disables instruction tracing.
  5. */
  6. public static final void VMtraceInstructions( boolean onOff)
  7. {
  8. if( LDAP_DEBUG) {
  9. if( VMtraceInstructions)
  10. run.traceInstructions( onOff);
  11. }
  12. return;
  13. }

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

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

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

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

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

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

相关文章