Add built-in profiling for Creating and Executing AutoQuery