code: public function disableSqlProfilerAction()
      {
          try {
              $this->getService()->setSqlProfilerStatus(false);
              $this->getService()->flushCache();
  
              Mage::getSingleton('core/session')->addSuccess('SQL profiler was disabled.');
          } catch (Exception $e) {
              Mage::getSingleton('core/session')->addError('Unable to disable SQL profiler: ' . $e->getMessage());
          }
  
          $this->_redirectReferer();
      }
docs: Disable SQL profiler