I would think you could just use a normal profiler with some mental 
translations. The translations between Clojure vars/namespaces and Java 
classes are in most cases pretty straightforward. A function "foo" in 
namespace "core" becomes class "core$foo", function bar becomes "core$bar", 
etc. Then there's some extra noise you'll see like "invoke" and "doInvoke" 
to call functions. I've used the YourKit profiler a bit and it wasn't too 
difficult for my purposes at least.

On Sunday, February 8, 2015 at 8:24:05 PM UTC+2, Giovanni Gherdovich wrote:
>
> Hello,
>
> I am trying to use a java profiler (jvisualvm)
> to see why my clojure program is so slow.
> But I now realize that the profiler has no notion of my clojure program;
> I have clojure functions foo and bar,
> and would like to know how much they contribute
> to the overall execution time.
>
> jvisualvm is only telling me what java methods are called;
> it says I use cons and assoc a lot, but that's not exactly what I need.
>
> I also know about Java Mission Control and YourKit.
> I haven't tried them but I guess the same applies.
>
> Any suggestion on how to get the call tree with timing of my program
> from the clojure point of view?
>
> Cheers,
> GGhh
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to