Re: Profiling in Counterclockwise

2014-10-09 Thread Gary Verhaegen
On Sunday, 5 October 2014, Fluid Dynamics 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 setting

Re: Profiling in Counterclockwise

2014-10-09 Thread Christophe Grand
To profile whithin Eclipse you need to have the TPTP pugin installed http://www.eclipse.org/tptp/. That said, I *never* managed to have it work (I haven't tried for at least two years), launching from Eclipse as usual and connecting an external profiler (VisualVM or Yourkit works fine -- Yourkit ev

Re: Profiling in Counterclockwise

2014-10-08 Thread Fluid Dynamics
On Wednesday, October 8, 2014 9:20:31 PM UTC-4, Skottk wrote: > > I just did this for the first time last week. Run VisualVM, it gives you > a list of running VMs. Select one. Hit the button to start collecting > profiling data. Execute some code in the REPL. Eventually it will finish, > and yo

Re: Profiling in Counterclockwise

2014-10-08 Thread Skottk
I just did this for the first time last week. Run VisualVM, it gives you a list of running VMs. Select one. Hit the button to start collecting profiling data. Execute some code in the REPL. Eventually it will finish, and you'll have a big stack of profiling data. It won't go down to the granula

Re: Profiling in Counterclockwise

2014-10-05 Thread Fluid Dynamics
On Sunday, October 5, 2014 6:55:53 PM UTC-4, Andy Fingerhut 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 didn't find much and the only real lead I came up with dead-

Re: Profiling in Counterclockwise

2014-10-05 Thread juan.facorro
VisualVM has a GUI which is fairly simple to use, you just download it, run it and get a list of all the running JVM instances on your local machine. There's even an option to sample the running code, that shows what functions are taking the most CPU time. If I understood correctly VisualVM is

Re: Profiling in Counterclockwise

2014-10-05 Thread Mark Engelberg
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,

Re: Profiling in Counterclockwise

2014-10-05 Thread Andy Fingerhut
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? Y

Re: Profiling in Counterclockwise

2014-10-05 Thread Luc Prefontaine
As far as I know the external tools exposed so far are the only way to get the breakdown you are seeking. Profiling in dev with an external tool is kind of a conflicting goal to me. Such tools used in dev are also a form of micro benchmarking on incomplete code. Your app is not fully packaged,

Re: Profiling in Counterclockwise

2014-10-05 Thread Fluid Dynamics
On Sunday, October 5, 2014 4:58:04 PM UTC-4, Luc wrote: > > Have a look at criterium. > > https://github.com/hugoduncan/criterium > That's (micro)benchmarking, not profiling. Profiling would break down the time spent in different functions and help to identify hot spots that might especially b

Re: Profiling in Counterclockwise

2014-10-05 Thread Luc Prefontaine
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 t

Re: Profiling in Counterclockwise

2014-10-05 Thread Ashton Kemerling
The profiling and logging tool might be Java specific. On Sun, Oct 5, 2014 at 2:38 PM, Fluid Dynamics 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 al

Re: Profiling in Counterclockwise

2014-10-05 Thread Fluid Dynamics
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

Re: Profiling in Counterclockwise

2014-10-05 Thread Gary Verhaegen
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 sugge

Profiling in Counterclockwise

2014-10-05 Thread Fluid Dynamics
How does one profile in Counterclockwise? Googling for counterclockwise profile clojure didn't bear fruit, and googling for eclipse profile java turned up that there's apparently supposed to be a "Profiling and Logging perspective" which is missing, at least in the Open Perspective dialog in th