Skip to content

Commit

Permalink
Merge branch '6.2' of https://github.com/lucee/Lucee into 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Dec 19, 2024
2 parents ff5e463 + b08ef2d commit fc4dd1b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/src/main/java/lucee/runtime/PageContextImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,16 @@ public Object getFunction(Object coll, String key, Object[] args) throws PageExc

@Override
public Object getFunction(Object coll, Key key, Object[] args) throws PageException {
if (config.hasDebugOptions(ConfigPro.DEBUG_TEMPLATE) && !gatewayContext) {
DebugEntryTemplate debugEntry = debugger.getEntry(this, getCurrentTemplatePageSource(), key.toString());
long currTime = getExecutionTime();
long time = System.nanoTime();
Object result = variableUtil.callFunctionWithoutNamedValues(this, coll, key, args);
long diff = ((System.nanoTime() - time) - (getExecutionTime() - currTime));
setExecutionTime(getExecutionTime() + diff);
debugEntry.updateExeTime(diff);
return result;
}
return variableUtil.callFunctionWithoutNamedValues(this, coll, key, args);
}

Expand Down

0 comments on commit fc4dd1b

Please sign in to comment.