Hi Maynard,

Many thanks for your reply.

> If your interpreter compiles the program into ELF and then runs it...

How would I know if it is compiling my R code into ELF?
Unlike Java, there is no javac command or .class file produced.

This may mean I simply can't use oprofile to look at the performance
of what my code does.  If so, do you have any suggestion as to what
other tools I can use?

I'd appreciate your comment.

Regards,

Yampachi


On Fri, Sep 11, 2009 at 5:42 AM, Maynard Johnson <maynardj@us.ibm.com> wrote:
Yampachi Yakeno wrote:
> Hi,
>
> I am new to oprofile and I have a couple of questions.
>
> 1) Can oprofile be used to find out the performance of
>     a program that runs via an interpreter?  The interpreter
>     I am using is R.
If your interpreter compiles the program into ELF and then runs it (like Java's JIT compiler), then it's theoretically possible to use oprofile.  I say "theoretically" because at this time, oprofile includes support for only Java JITed code.  A framework is provided in the oprofile source code so that developers can pretty easily build their own profiling agent.  See http://oprofile.sourceforge.net/doc/devel/index.html.
>
> 2) Assuming YES to the above question, I am using Redhat
>     linux and I don't have vmlinux. Instead, I have vmlinuz.
>     Does this mean I can do:
>
>     opcontrol --vmlinux=/boot/vmlinuz-`uname -r`
>
>     Or does it mean I must do:
>
>     opcontrol --no-vmlinux
You can use --no-vmlinux if you're not interested in profiling the kernel.  But, for RHEL, if you do want to see where the kernel is spending it's time, you must install the kernel-debuginfo RPM, then set your --vmlinux option to "/usr/lib/debug/lib/modules/`uname -r`/vmlinux".

-Maynard

>
> Thank you in advance.
>
> Yampachi
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> oprofile-list mailing list
> oprofile-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oprofile-list