org.mmtk.vm
Class Statistics

java.lang.Object
  extended by org.mmtk.vm.Statistics
Direct Known Subclasses:
Statistics

public abstract class Statistics
extends Object


Constructor Summary
Statistics()
           
 
Method Summary
abstract  long cycles()
          Read the cycle counter
abstract  long millisToNanos(double t)
          Convert milliseconds to nanoseconds
abstract  double nanosToMillis(long c)
          Convert nanoseconds to milliseconds
abstract  double nanosToSecs(long c)
          Convert nanoseconds to seconds
abstract  long nanoTime()
          Read cycle counter
abstract  void perfEventInit(String events)
          Initialize performance events
abstract  void perfEventRead(int counter, long[] values)
          Read a performance event value
abstract  long secsToNanos(double t)
          Convert seconds to nanoseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statistics

public Statistics()
Method Detail

nanoTime

public abstract long nanoTime()
Read cycle counter


nanosToMillis

public abstract double nanosToMillis(long c)
Convert nanoseconds to milliseconds


nanosToSecs

public abstract double nanosToSecs(long c)
Convert nanoseconds to seconds


millisToNanos

public abstract long millisToNanos(double t)
Convert milliseconds to nanoseconds


secsToNanos

public abstract long secsToNanos(double t)
Convert seconds to nanoseconds


cycles

public abstract long cycles()
Read the cycle counter


perfEventInit

public abstract void perfEventInit(String events)
Initialize performance events


perfEventRead

public abstract void perfEventRead(int counter,
                                   long[] values)
Read a performance event value