Have a look at criterium.

https://github.com/hugoduncan/criterium

It will allow you to look at the performance
of code chunks in the REPL,
you get meaningful results and 
a solid comparison basis.

So practical that it's part of my default
profile.

You can test different approaches
w/o leaving the REPL.

I use VisualVM and similar tools
for integrated tests once the app
is packaged as a safeguard.

Luc P.

> On Sunday, October 5, 2014 3:57:37 PM UTC-4, Gary Verhaegen wrote:
> >
> > When I need to profile (which is asmittedly quite rare), I use VisualVM, 
> > which should have been installed along with the JDK. I'd recommend editing 
> > the default settings to remove clojure.** and add your own namespaces as 
> > starting points for the profiling.
> >
> > For more lightweight approaches, I'd suggest checking out Timbre and 
> > Criterium, though I have very little experience with both.
> >
> >
> > None of this is Eclipse specific or runs in Eclipse.
> >
> 
> So, what you're saying is that I'd have to
> 
> 1) Package everything up
> 2) Deploy to somewhere
> 3) Learn how to use <insert new, complicated tool here that requires 
> classpath configuration and stuff>
> 4) Identify hot spots
> 5) Make improvement of some sort
> 6) Back to step 1?
> 
> Because that seems to *completely eliminate* the benefit of having a REPL 
> and fast development/try things/edit cycle. :(
>  
> Meanwhile, why did I get google results for a supposed "Profiling and 
> Logging perspective" in Eclipse if no such thing exists?
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> 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 clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> 
--
Luc Prefontaine<lprefonta...@softaddicts.ca> sent by ibisMail!

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to