statistics.recordInvocation(function.getCount(), function.getInvocation(), function.getDataInput(), function.getDataOutput());
remoteInvocationCost += function.getInvocation() / function.getCount();
}
}
if (remoteInvocationCost > 0) {
return new Scaling(localInvocationCost / remoteInvocationCost);
} else {
return null;
}
}