diff --git a/legend-engine-core/legend-engine-core-language-pure/legend-engine-language-pure-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/PureModel.java b/legend-engine-core/legend-engine-core-language-pure/legend-engine-language-pure-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/PureModel.java index 1a6c4c3da5a..c2c0dbb0c4e 100644 --- a/legend-engine-core/legend-engine-core-language-pure/legend-engine-language-pure-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/PureModel.java +++ b/legend-engine-core/legend-engine-core-language-pure/legend-engine-language-pure-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/PureModel.java @@ -286,7 +286,11 @@ public PureModel(PureModelContextData pureModelContextData, CompilerExtensions e LOGGER.info("{}", new LogInfo(pm, "GRAPH_OTHER_ELEMENTS_BUILT_POST_CONNECTIONS_AND_RUNTIMES", nanosDurationToMillis(loadOtherElementsPostConnectionsAndRuntimesStart, loadOtherElementsPostConnectionsAndRuntimesEnd))); span.log("GRAPH_OTHER_ELEMENTS_BUILT_POST_CONNECTIONS_AND_RUNTIMES"); + long loadFunctionsStart = System.nanoTime(); pureModelContextDataIndex.functions.forEach(this::processFifthPass); + long loadFunctionsEnd = System.nanoTime(); + LOGGER.info("{}", new LogInfo(pm, "GRAPH_FUNCTIONS_BUILT", nanosDurationToMillis(loadFunctionsStart, loadFunctionsEnd))); + span.log("GRAPH_FUNCTIONS_BUILT"); // Post Validation long postValidationStart = System.nanoTime(); @@ -493,7 +497,6 @@ public void loadMappings(PureModelContextDataIndex pure) pure.mappings.forEach(this::processThirdPass); pure.mappings.forEach(this::processFourthPass); pure.mappings.forEach(this::processFifthPass); - } public void loadConnectionsAndRuntimes(PureModelContextDataIndex pure)