avrora.monitors
Class EnergyProfiler

java.lang.Object
  extended byavrora.util.help.HelpCategory
      extended byavrora.monitors.MonitorFactory
          extended byavrora.monitors.EnergyProfiler
All Implemented Interfaces:
HelpItem

public class EnergyProfiler
extends MonitorFactory

The EnergyProfiler class is a monitor that tracks the power consumption of the cpu instructions. It provides a breakdown to the procedures and records the exact cycles spend in each procedure.


Nested Class Summary
 class EnergyProfiler.EnergyProfile
           
 class EnergyProfiler.Monitor
          The EnergyProfiler class is a monitor that tracks the power consumption of the cpu instructions.
 
Field Summary
 
Fields inherited from class avrora.monitors.MonitorFactory
options
 
Fields inherited from class avrora.util.help.HelpCategory
COMPARATOR, help, name
 
Constructor Summary
EnergyProfiler()
          The constructor for the EnergyProfiler class builds a new MonitorFactory capable of creating monitors for each Simulator instance passed to the newMonitor() method.
 
Method Summary
 Monitor newMonitor(Simulator s)
          The newMonitor() method creates a new monitor that is capable of energy profiling.
 
Methods inherited from class avrora.monitors.MonitorFactory
processOptions
 
Methods inherited from class avrora.util.help.HelpCategory
addCommandExample, addListSection, addOptionSection, addSection, addSubcategorySection, getHelp, getName, printHelp, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnergyProfiler

public EnergyProfiler()
The constructor for the EnergyProfiler class builds a new MonitorFactory capable of creating monitors for each Simulator instance passed to the newMonitor() method.

Method Detail

newMonitor

public Monitor newMonitor(Simulator s)
The newMonitor() method creates a new monitor that is capable of energy profiling. It provides a breakdown to the individual procedures of the program.

Specified by:
newMonitor in class MonitorFactory
Parameters:
s - the simulator to create a monitor for
Returns:
an instance of the Monitor interface for the specified simulator