Skip to content

Commit 8888391

Browse files
[track-state] Tune recognized meta keys
1 parent ee48d40 commit 8888391

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

cider-mode.el

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -806,17 +806,13 @@ with the given LIMIT."
806806
(`"\"light-form\""
807807
(push sym enlightened)))
808808
;; FIXME: This matches values too, not just keys.
809-
(when (seq-find (lambda (k)
810-
(and (stringp k)
811-
(or (string= "orchard.trace/traced" k)
812-
(string= "orchard.profile/profiled" k))))
813-
meta)
809+
(when (or (nrepl-dict-get meta "orchard.trace/traced")
810+
(nrepl-dict-get meta "orchard.profile/profiled"))
814811
(push sym traced))
815812
(when (and do-deprecated (nrepl-dict-get meta "deprecated"))
816813
(push sym deprecated))
817814
(let ((is-macro (nrepl-dict-get meta "macro"))
818-
(is-function (or (nrepl-dict-get meta "fn")
819-
(nrepl-dict-get meta "arglists"))))
815+
(is-function (nrepl-dict-get meta "fn")))
820816
(cond ((and do-macro is-macro)
821817
(push sym macros))
822818
((and do-function is-function)

doc/modules/ROOT/pages/debugging/profiling.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
CIDER has a simple built-in profiler that can you to quickly measure the running
44
time of individual functions. It is similar to wrapping your functions with
5-
`time` macro, except it records every timing and displays a the summarized
6-
result.
5+
`time` macro, except it records every timing and displays a summarized result.
76

87
NOTE: Profiling is different from benchmarking. Benchmarking more accurately
98
tells you how long the code executes. If you need accurate timing results, use a

0 commit comments

Comments
 (0)