Class LocalExperimentsTests.TimeTracerFactory

java.lang.Object
net.ssehub.easy.instantiation.core.model.execution.TracerFactory
net.ssehub.easy.producer.scenario_tests.LocalExperimentsTests.TimeTracerFactory
Enclosing class:
LocalExperimentsTests

private static class LocalExperimentsTests.TimeTracerFactory extends net.ssehub.easy.instantiation.core.model.execution.TracerFactory
A tracer factory for time tracing.
Author:
Holger Eichelberger
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.ssehub.easy.instantiation.core.model.execution.TracerFactory

    net.ssehub.easy.instantiation.core.model.execution.TracerFactory.DefaultTracerFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class net.ssehub.easy.instantiation.core.model.execution.TracerFactory

    BUILDLANG_TRACERS, DEFAULT, EMPTY_INSTANTIATOR_TRACER, PROGRESS_OBSERVERS, TEMPLATELANG_TRACERS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Constructs a new tracer factory and sets this instance as the default factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.ssehub.easy.instantiation.core.model.buildlangModel.ITracer
     
    net.ssehub.easy.instantiation.core.model.execution.IInstantiatorTracer
     
    net.ssehub.easy.instantiation.core.model.templateModel.ITracer
     
    private Long
    Returns the execution time of the given script.
    private void
    Prints the execution time results as a simple table.
    private Set<String>
    Returns the names of the measured scripts.

    Methods inherited from class net.ssehub.easy.instantiation.core.model.execution.TracerFactory

    closeTasks, createBuildLanguageTracer, createInstantiatorTracer, createTemplateLanguageTracer, ensureTasks, getDefaultInstance, getInstance, getRegisteredBuildLanguageTracer, getRegisteredTemplateLanguageTracer, getTraceFilter, progress, progressSubTask, registerBuildLanguageTracer, registerProgressObserver, registerTemplateLanguageTracer, setDefaultInstance, setInstance, setTraceFilter, unregisterBuildLanguageTracer, unregisterProgressObserver, unregisterTemplateLanguageTracer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TimeTracerFactory

      private TimeTracerFactory()
      Constructs a new tracer factory and sets this instance as the default factory.
  • Method Details

    • createTemplateLanguageTracerImpl

      public net.ssehub.easy.instantiation.core.model.templateModel.ITracer createTemplateLanguageTracerImpl()
      Specified by:
      createTemplateLanguageTracerImpl in class net.ssehub.easy.instantiation.core.model.execution.TracerFactory
    • createBuildLanguageTracerImpl

      public net.ssehub.easy.instantiation.core.model.buildlangModel.ITracer createBuildLanguageTracerImpl()
      Specified by:
      createBuildLanguageTracerImpl in class net.ssehub.easy.instantiation.core.model.execution.TracerFactory
    • createInstantiatorTracerImpl

      public net.ssehub.easy.instantiation.core.model.execution.IInstantiatorTracer createInstantiatorTracerImpl()
      Specified by:
      createInstantiatorTracerImpl in class net.ssehub.easy.instantiation.core.model.execution.TracerFactory
    • scriptNames

      private Set<String> scriptNames()
      Returns the names of the measured scripts.
      Returns:
      the names
    • getExecutionTime

      private Long getExecutionTime(String scriptName)
      Returns the execution time of the given script.
      Parameters:
      scriptName - the name of the script
      Returns:
      the execution time or null if unknown
    • printResults

      private void printResults()
      Prints the execution time results as a simple table.