Tim Reilly wrote:
> 
> I've got some code that's running a lot slower than I think it should be.
> To diagnose it I'd like to use a profiler.
> 
> Unfortunately, I can't use the one below because I'm using the blackdown
> 1.1.7 JDK, does anyone know of a 1.1.x linux-compatible profiler?

You can make it work for you, but you'll have to do a bit of engineering
(I'm a little pressed for time at the moment). There's nothing
particularly 1.2-flavored about Profiler, except for its use of the nice
JVMPI interface for starting it and stopping it.

Take a look at the profiler::NotifyEvent method. If you were to pull the
(event->event_type == JVMPI_EVENT_JVM_INIT_DONE) stuff out into
procedure A, the (event->event_type == JVMPI_EVENT_JVM_SHUT_DOWN) stuff
out into procedure B, and take over the initialization stuff from
profiler::JVM_OnLoad() - you'd have a profiler you could start
(procedure A) and stop (procedure B) with calls from your own code. It's
not as nice as automatically loading a profiler, but JDK1.1 doesn't give
us that option.

Nathan


> Thanks much,
> 
> -Tim
> 
> On Fri, 10 Sep 1999, Nathan Meyers wrote:
> 
> > This is to announce, for the benefit of those using my "Profiler" native
> > profiler for JDK1.2, that an update has been posted - please grab the
> > latest version. Description at:
> >
> >     http://www.teleport.com/~nmeyers/FreeWare/#Profiler
> >
> > New bits at:
> >
> >     http://www.teleport.com/~nmeyers/FreeWare/Profiler/Profiler-1.3.tgz
> >
> >
> > This version has two important fixes:
> >
> > - Time is now reported against global procedure names. The old,
> > confusing behavior (reporting against local labels found in the shared
> > libraries) is optionally still available.
> >
> > - Total time reported now accounts for system CPU time spent on behalf
> > of user code, which reflects how profiling really works.
> >
> >
> > Nathan Meyers
> > [EMAIL PROTECTED]
> >
> >
> > ----------------------------------------------------------------------
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
> >
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to