make profiling configurable