Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Profiling tool for Clojure?

does anyone know of a good profiling tool or library for Clojure?

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.

Is there anything along those lines?

Or do you have any experience with (non-commercial) Java profilers that work well with Clojure?

like image 928
j-g-faustus Avatar asked Jun 04 '10 14:06

j-g-faustus


2 Answers

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.

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.

like image 116
Michał Marczyk Avatar answered Sep 30 '22 03:09

Michał Marczyk


There's a newish Clojure library which offers profiling: https://github.com/ptaoussanis/timbre

like image 37
higginbotham Avatar answered Sep 30 '22 01:09

higginbotham