Skip to content

Commit

Permalink
Add logging for function loading in PureModel (#2662)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-m-knight-gs authored Feb 28, 2024
1 parent 2924773 commit fd8e124
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fd8e124

Please sign in to comment.