add an option to use the cProfile built-in profiler