complete tune_query, debug time