james <ja...@3dengineer.com> writes:

> Using the -Xprof switch seems to indicate java.lang.Character.hashCode
> is called a lot and i guess that's to do with the nested maps that
> represent the trie.
>
> Using jvisualvm doesn't help much either as it's not giving me a call
> graph.
> Just self counts for each function, so it's difficult to see how it
> related to the clojure code.

Try using this instead of -Xprof:

-agentlib:hprof=cpu=samples,depth=6,force=n

That'll write a file java.hprof.$pid.txt to the current directory.  Look
at the end of the file and there'll be a "CPU SAMPLES" section which
shows the profiler output.  You can search the start of the file for the
number in the "trace" column to find a stack trace for that function.
If the stack trace isn't long enough, adjust the "depth" option.

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

Reply via email to