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
FieldsFields inherited from class net.ssehub.easy.instantiation.core.model.execution.TracerFactory
BUILDLANG_TRACERS, DEFAULT, EMPTY_INSTANTIATOR_TRACER, PROGRESS_OBSERVERS, TEMPLATELANG_TRACERS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstructs a new tracer factory and sets this instance as the default factory. -
Method Summary
Modifier and TypeMethodDescriptionnet.ssehub.easy.instantiation.core.model.buildlangModel.ITracernet.ssehub.easy.instantiation.core.model.execution.IInstantiatorTracernet.ssehub.easy.instantiation.core.model.templateModel.ITracerprivate LonggetExecutionTime(String scriptName) Returns the execution time of the given script.private voidPrints the execution time results as a simple table.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
-
Field Details
-
tracer
-
-
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:
createTemplateLanguageTracerImplin classnet.ssehub.easy.instantiation.core.model.execution.TracerFactory
-
createBuildLanguageTracerImpl
public net.ssehub.easy.instantiation.core.model.buildlangModel.ITracer createBuildLanguageTracerImpl()- Specified by:
createBuildLanguageTracerImplin classnet.ssehub.easy.instantiation.core.model.execution.TracerFactory
-
createInstantiatorTracerImpl
public net.ssehub.easy.instantiation.core.model.execution.IInstantiatorTracer createInstantiatorTracerImpl()- Specified by:
createInstantiatorTracerImplin classnet.ssehub.easy.instantiation.core.model.execution.TracerFactory
-
scriptNames
Returns the names of the measured scripts.- Returns:
- the names
-
getExecutionTime
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.
-