dtrace java API 在 Oracle Solaris 上?

dtrace java API on Oracle Solaris?

我想在机器 运行 Solaris Sparc 上使用 Java 应用程序中的 dtrace。我在几个地方看到了 DTrace Java API 的例子,包括这里:

https://blogs.oracle.com/sundararajan/entry/using_dtrace_java_api

这里:

ftp://ida.esac.esa.int/.SUNWnative/usr/share/lib/java/javadoc/dtrace/html/fast.html

但我无法弄清楚 dtrace Java API 是否仅在某些 Solaris 变体(如 OpenSolaris)上可用。

我可以在 Sun Sparc 硬件上的 Oracle Solaris 运行 上使用 dtrace Java API 吗?

根据 this document,DTrace Java 工具包位于 /usr/share/lib/java

The Java Dynamic Tracing (DTrace) API is an interface to the native DTrace library. This interface provides support to develop visualization tools written in Java. The Java DTrace API comes installed in /usr/share/lib/java/dtrace.jar. This API allows multiple consumers of DTrace data to run simultaneously within a single Virtual Machine for the Java platform (JVMTM machine). Each consumer of the Java DTrace API listens for probe data and enables you to request consistent snapshots of aggregation data at any time.

For more information, see the JavadocTM API at /usr/share/lib/java/javadoc/dtrace/api/index.html.

在我安装的 Solaris 11.2 中,文件与文档所说的完全相同。