Function: cider-profile-toggle
cider-profile-toggle is an autoloaded, interactive and byte-compiled
function defined in cider-profile.el.
Signature
(cider-profile-toggle QUERY)
Documentation
Toggle profiling for the given QUERY.
Defaults to the symbol at point. With prefix arg or no symbol at point, prompts for a var.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-profile.el
;;;###autoload
(defun cider-profile-toggle (query)
"Toggle profiling for the given QUERY.
Defaults to the symbol at point.
With prefix arg or no symbol at point, prompts for a var."
(interactive "P")
(cider-ensure-op-supported "cider/profile-toggle-var")
(cider-read-symbol-name
"Toggle profiling for var: "
(lambda (sym)
(let ((ns (cider-current-ns)))
(cider-nrepl-send-request
`("op" "cider/profile-toggle-var"
"ns" ,ns
"sym" ,sym)
(cider-profile--make-response-handler
(lambda (_buffer value)
(pcase value
("profiled" (message "Profiling enabled for %s/%s" ns sym))
("unprofiled" (message "Profiling disabled for %s/%s" ns sym)))))))))
query)