Is there any support built into Rhino that we might be able to build our own
Attila had suggested an approach using the debugger interfaces and we could
certainly write something to work here however it's not clear to me if
that's of any value. Would anyone be interested in profiling Rhino in
"Simon Kaegi" <simon...@ca.ibm.com> wrote in message
On 10/06/2010 12:49 PM, Simon Kaegi wrote:
> and am looking for any hooks we might be able to use
So if you're running compiled code, do you really need anything
Rhino-specific? What do you need that you don't get out of the regular
information that JVMTI provides?
(Note that I've never written anything that uses JVMTI; but I do profile
my compiled-with-Rhino JS application with the YourKit profiler. As
long as I give my anonymous functions suitable names so that I can
identify them, I've been happy enough profiling my application as if it
were any old regular Java app.)
> dev-tech-js-engine-rhino mailing list
He is also on this list and will probably be able to tell you more.
Well, we have a simple profiler in Ringo, but it's also based on the
debugger interface and hence doesn't work on compiled code:
I think it would actually be nice to be able to profile optimized
Rhino code. The full debugger interface is probably too heavy to
implement in optimized code, but maybe we could implement a reduced
interface optimized for tracing and profiling that only calls on
function enter/exit but not line change number? I have no idea how
hard that would be, but I can look into it the next time I spend some
time with Rhino bytecode generation.
> On 10 Jun 2010, at 03:37, Simon Kaegi wrote:
> > We've added support for debugging Rhino in Eclipse JSDT however we're now
> > "profiling"?
> > Is there any support built into Rhino that we might be able to build our own
> > "timing"support on?
> > Thanks.
> > -Simon
> > _______________________________________________
> > dev-tech-js-engine-rhino mailing list