here is javadoc for 3 public method of that class:
/**
* Return a reference to the singleton Perf instance.
* <p>
* The getPerf() method returns the singleton instance of the Perf
* class. The returned object provides the caller with the capability
* for accessing the instrumentation buffer for this or another local
* Java virtual machine.
* <p>
* If a security manager is installed, its <code>checkPermission</code>
* method is called with a <code>RuntimePermission</code> with a target
* of <em>"sun.misc.Perf.getPerf"</em>. A security exception will result
* if the caller has not been granted this permission.
* <p>
* Access to the returned <code>Perf</code> object should be protected
* by its caller and not passed on to untrusted code. This object can
* be used to attach to the instrumentation buffer provided by this Java
* virtual machine or for those of other Java virtual machines running
* on the same system. The instrumentation buffer may contain senstitive
* information. API's built on top of this interface may want to provide
* finer grained access control to the contents of individual
* instrumentation objects contained within the buffer.
* <p>
* Please note that the <em>"sun.misc.Perf.getPerf"</em> permission
* is not a JDK specified permission.
*
* @return A reference to the singleton Perf instance.
* @throws AccessControlException if a security manager exists and
* its <code>checkPermission</code> method doesn't allow
* access to the <em>"sun.misc.Perf.getPerf"</em> target.
* @see java.lang.RuntimePermission
* @see #attach
*/
public static Perf getPerf();
/**
* Return the value of the High Resolution Counter.
*
* The High Resolution Counter returns the number of ticks since
* since the start of the Java virtual machine. The resolution of
* the counter is machine dependent and can be determined from the
* value return by the {@link #highResFrequency} method.
*
* @return the number of ticks of machine dependent resolution since
* the start of the Java virtual machine.
*
* @see #highResFrequency
* @see java.lang.System#currentTimeMillis()
*/
public long highResCounter();
/**
* Returns the frequency of the High Resolution Counter, in ticks per
* second.
*
* This value can be used to convert the value of the High Resolution
* Counter, as returned from a call to the {@link #highResCounter}
method,
* into the number of seconds since the start of the Java virtual
machine.
*
* @return the frequency of the High Resolution Counter.
* @see #highResCounter
*/
public long highResFrequency();
On Sep 28, 2004, at 9:18 PM, Craig Mattocks wrote:
sun.misc.Perf
Dmitry Markman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden