Clojure 的分析工具? [英] Profiling tool for Clojure?
问题描述
有人知道 Clojure 有什么好的分析工具或库吗?
does anyone know of a good profiling tool or library for Clojure?
我更喜欢可以从 REPL 中使用的东西,就像当时 Allegro Common Lisp 中的 (with-profiling ...)
一样.
I would prefer something that could be used from the REPL, along the lines of (with-profiling ...)
in Allegro Common Lisp back in the day.
有没有类似的东西?
或者您是否有使用与 Clojure 配合良好的(非商业)Java 分析器的经验?
Or do you have any experience with (non-commercial) Java profilers that work well with Clojure?
推荐答案
我找到了 VisualVM(参见 此处 和 此处) 非常方便.大约一年前在 这篇博文中描述了它与 Clojure 的使用;据我所知,它并没有过时.
I found VisualVM (see here and here) to be very convenient. Its use with Clojure has been described about a year ago in this blog post; as far as I can see, it's not outdated in any way.
请注意,启动 VisualVM 分析器的 GUI 有一个突出的文本区域,您可以在其中输入要从分析中排除的类/包——我发现 clojure.*
在那个名单上.
Note that the GUI from which one starts the VisualVM profiler has a prominent text area where one can enter classes / packages to be excluded from profiling -- I find the results rather more useful when clojure.*
is on that list.
这篇关于Clojure 的分析工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!