public static FunctionStats getFunctionStats(String functionID) {
    InternalDistributedSystem ds = InternalDistributedSystem.getAnyInstance();
    if (ds == null) {
      return createDummyFunctionStats();
    }
    return ds.getFunctionStatsManager().getFunctionStatsByName(functionID);
  }
Returns the Function Stats for the given function

@param functionID represents the function for which we are returning the function Stats
@param ds represents the Distributed System
@return object of the FunctionStats
geode-core/src/main/java/org/apache/geode/internal/cache/execute/metrics/FunctionStatsManager.java