                     @id_execution++ # Update the id_execution and use it to tag the callbacks
                     rdb_global_callback = @generate_rdb_global_callback @id_execution
                     # Date are displayed in their raw format for now.
-                    console.log @state.options.profiler
+                    @state.last_query_has_profile = @state.options.profiler
                     rdb_query.private_run {connection: @driver_handler.connection, timeFormat: "raw", profile: @state.options.profiler}, rdb_global_callback # @rdb_global_callback can be fire more than once
                     return true
                 else if rdb_query instanceof DataExplorerView.DriverHandler

            profiler: true
        history: []
        focus_on_codemirror: true
        #saved_data: {}



        generate_rdb_global_callback: (id_execution) =>
            rdb_global_callback = (error, results) =>
                if @id_execution is id_execution # We execute the query only if it is the last one
                    get_result_callback = @generate_get_result_callback id_execution

                    if error?
