I haven't done it in a while so can't give detailed instructions, but it is definitely possible to profile code running in the REPL. The profiler that comes with java allows you to select any java process running on your machine, so you just select the JVM instance that is running the REPL. Then, you can start and stop recording profiling data any time you want, as you do things in the REPL you want to profile.
On Sun, Oct 5, 2014 at 3:55 PM, Andy Fingerhut <andy.finger...@gmail.com> wrote: > I would suggest doing Google searches for combinations of terms such as: > > clojure profiling > > That search found several relevant matches when I tried it. > > I am not sure why you say "2) Deploy to somewhere", unless by "somewhere" > you include running a JVM on your own local development machine? You > should be able to profile a JVM process on whatever machine that you run a > REPL on. > > Your step "3) Learn how to use ..." might be true, but it depends upon > your threshold of "complicated". For some, it is simply par for the course > for development. > > Andy > > On Sun, Oct 5, 2014 at 1:38 PM, Fluid Dynamics <a2093...@trbvm.com> wrote: > >> 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. >> > > -- > 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. > -- 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.