added profiling switch to compiler