add profiling support for built-in functions