org.eclipse.emf.henshin.interpreter.impl
Class ProfilingApplicationMonitor

java.lang.Object
  extended by org.eclipse.emf.henshin.interpreter.impl.BasicApplicationMonitor
      extended by org.eclipse.emf.henshin.interpreter.impl.ProfilingApplicationMonitor
All Implemented Interfaces:
ApplicationMonitor

public class ProfilingApplicationMonitor
extends BasicApplicationMonitor

ApplicationMonitor implementation that gathers profiling statistics.


Field Summary
protected  Map<Rule,Long> durations
           
protected  Map<Rule,Integer> executions
           
protected  long startTime
           
 
Fields inherited from class org.eclipse.emf.henshin.interpreter.impl.BasicApplicationMonitor
canceled, undo
 
Constructor Summary
ProfilingApplicationMonitor()
           
 
Method Summary
 void notifyExecute(UnitApplication application, boolean success)
          Notify this monitor that a unit application has been executed.
 void printStats()
           
 
Methods inherited from class org.eclipse.emf.henshin.interpreter.impl.BasicApplicationMonitor
cancel, cancelAndUndo, isCanceled, isUndo, notifyRedo, notifyUndo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTime

protected long startTime

durations

protected Map<Rule,Long> durations

executions

protected Map<Rule,Integer> executions
Constructor Detail

ProfilingApplicationMonitor

public ProfilingApplicationMonitor()
Method Detail

notifyExecute

public void notifyExecute(UnitApplication application,
                          boolean success)
Description copied from interface: ApplicationMonitor
Notify this monitor that a unit application has been executed.

Specified by:
notifyExecute in interface ApplicationMonitor
Overrides:
notifyExecute in class BasicApplicationMonitor
Parameters:
application - Executed unit application.
success - Whether the unit application was successful.

printStats

public void printStats()