Function: cider-profile-ns-toggle

cider-profile-ns-toggle is an autoloaded, interactive and byte-compiled function defined in cider-profile.el.

Signature

(cider-profile-ns-toggle &optional QUERY)

Documentation

Toggle profiling for the ns associated with optional QUERY.

If optional argument QUERY is non-nil, prompt for ns. Otherwise use current ns.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-profile.el
;;;###autoload
(defun cider-profile-ns-toggle (&optional query)
  "Toggle profiling for the ns associated with optional QUERY.

If optional argument QUERY is non-nil, prompt for ns.  Otherwise use
current ns."
  (interactive "P")
  (let ((ns (if query
                (completing-read "Toggle profiling for ns: "
                                 (cider-sync-request:ns-list))
              (cider-current-ns))))
    (cider-nrepl-send-request
     `("op" "cider/profile-toggle-ns"
       "ns" ,ns)
     (cider-profile--make-response-handler
      (lambda (value)
        (pcase value
          ("profiled" (message "Profiling enabled for %s" ns))
          ("unprofiled" (message "Profiling disabled for %s" ns))))))))