|
|
|
Re: Profiling Java code running on Sun HotSpot JVM with linux perf | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On 08/31/2011 2:35 AM, Stefan Hajnoczi wrote:
On Tue, Aug 30, 2011 at 9:03 PM, Geoffrey Blake <geoffrey.w.blake@xxxxxxxxx> wrote:Hi all, I am trying to profile some java server applications using %>perf record -a, and as expected the majority of the execution time of these applications is spent within jit'ed java code. According to these lists, the jit should be outputting a /tmp/perf-$pid.map file for each thread being jit'ed. The Sun JIT does not seem to have this output enabled by default. Does anyone here know what options I need to set on the command line to get the JVM to output the symbol map files from the JIT?I don't know the answer but if you don't get one here you could check the OProfile mailing list. I believe there was a solution for JIT compilers with OProfile and people probably got popular JVMs like HotSpot working. That might reveal what support HotSpot has for doing this.
Geoffrey,I don't know if there's a way to get perf to show you profile information for Java class methods, but as Stefan said, you can indeed get this using oprofile. See http://oprofile.sourceforge.net/doc/index.html and read every section with "JIT" in the title.
-Maynard
Stefan -- To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
-- To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |
![]() |