Add a utility pass for externalizing functions for measurement purposes.