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 even offers some simple
integration with eclipse run configurations).

When profiling Clojure code I always start by sampling object allocation
(with stack traces recorded) before looking at CPU usage.

Christophe

On Sun, Oct 5, 2014 at 10: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.
>



-- 
On Clojure http://clj-me.cgrand.net/
Clojure Programming http://clojurebook.com
Training, Consulting & Contracting http://lambdanext.eu/

-- 
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