Add basic function instrumentation on OSX