From: Maynard Johnson <maynardj@us.ibm.com>
To: Geoffrey Blake <geoffrey.w.blake@gmail.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>, linux-perf-users@vger.kernel.org
Subject: Re: Profiling Java code running on Sun HotSpot JVM with linux perf
Date: Thu, 01 Sep 2011 09:58:34 -0500 [thread overview]
Message-ID: <4E5F9D9A.3060307@us.ibm.com> (raw)
In-Reply-To: <CAJSP0QUEcbuxE6n0pb3rydaUuna_nLi-gPZVT6TXGS5OXMAK9A@mail.gmail.com>
On 08/31/2011 2:35 AM, Stefan Hajnoczi wrote:
> On Tue, Aug 30, 2011 at 9:03 PM, Geoffrey Blake
> <geoffrey.w.blake@gmail.com> 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@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-09-01 14:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-30 20:03 Profiling Java code running on Sun HotSpot JVM with linux perf Geoffrey Blake
2011-08-31 7:35 ` Stefan Hajnoczi
2011-08-31 9:00 ` Maucci, Cyrille
2011-09-01 10:21 ` Stefan Hajnoczi
2011-09-01 14:58 ` Maynard Johnson [this message]
2011-09-02 15:42 ` Geoffrey Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E5F9D9A.3060307@us.ibm.com \
--to=maynardj@us.ibm.com \
--cc=geoffrey.w.blake@gmail.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).