diff --git a/core/src/main/java/lucee/runtime/PageContextImpl.java b/core/src/main/java/lucee/runtime/PageContextImpl.java index e7a8cfb651..4dfa5087aa 100644 --- a/core/src/main/java/lucee/runtime/PageContextImpl.java +++ b/core/src/main/java/lucee/runtime/PageContextImpl.java @@ -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); }