Package org.eclipse.epsilon.eol.launch
Interface ProfilableIEolModule
- All Superinterfaces:
IEolModule
,IModule
,ModuleElement
Convenience interface for profiling methods in an IEolModule.
- Since:
- 1.6
- Author:
- Sina Madani
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addProfileInfo
(String stage, long nanos, long memory) default Object
default void
profileExecution
(Consumer<EolRuntimeException> exceptionHandler) default void
profileExecutionStage
(String description, Runnable code) default <T> void
profileExecutionStage
(String description, Consumer<T> code, T argument) default <T,
R> R profileExecutionStage
(String description, Function<T, R> code, T argument) default <R> R
profileExecutionStage
(String description, Supplier<R> code) default <T> void
profileExecutionStage
(String description, CheckedEolConsumer<T> code, T argument) default <T,
R> R profileExecutionStage
(String description, CheckedEolFunction<T, R> code, T argument) default void
profileExecutionStage
(String description, CheckedEolRunnable code) default <R> R
profileExecutionStage
(String description, CheckedEolSupplier<R> code) Methods inherited from interface org.eclipse.epsilon.eol.IEolModule
configure, execute, getConfigurationProperties, getContext, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getMain, getModelDeclarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setImportManager, setParentModule
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
createAst, getSourceUri, parse, parse, parse, parse, parse
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
build, getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
Method Details
-
getProfiledStages
Collection<ProfileDiagnostic> getProfiledStages() -
profileExecution
-
addProfileInfo
-
profileExecution
- Throws:
EolRuntimeException
-
profileExecutionStage
-
profileExecutionStage
-
profileExecutionStage
-
profileExecutionStage
-
profileExecutionStage
default <T,R> R profileExecutionStage(String description, CheckedEolFunction<T, R> code, T argument) throws EolRuntimeException- Throws:
EolRuntimeException
-
profileExecutionStage
default <R> R profileExecutionStage(String description, CheckedEolSupplier<R> code) throws EolRuntimeException - Throws:
EolRuntimeException
-
profileExecutionStage
default <T> void profileExecutionStage(String description, CheckedEolConsumer<T> code, T argument) throws EolRuntimeException - Throws:
EolRuntimeException
-
profileExecutionStage
default void profileExecutionStage(String description, CheckedEolRunnable code) throws EolRuntimeException - Throws:
EolRuntimeException
-