RE: GC and Time Stamp
Nathan Fiedler <[email protected]> 28 Jun 2002 10:25:47 -0700
| Newsgroups | gmane.comp.java.jswat.devel |
|---|---|
| Message-ID | <1025285148.1611.8.camel@chip> |
The JVMPI is a wholly different story from JPDA. I looked at using it once and determined that it was simply way too much work. Not only would I have to write the front-end (like jswat), I would also have to write the native library that interfaces with the JVM, and devise the communication protocol between the two. I don't have that kind of time. n On Fri, 2002-06-28 at 07:42, Wasler, David wrote: > Hi All: > > I'm still on my quest to add a time stamp to GC > I came across this went reviewing jvmpi doc. > Can I use jswat to catch NotifyEvent from the JVM? > > http://java.sun.com/j2se/1.3/docs/guide/jvmpi/jvmpi.html#event_notification > > > The VM sends an event by calling NotifyEvent with a JVMPI_Event data > structure as the argument. The following events are supported: > method enter and exit > object alloc, move, and free > heap arena create and delete > GC start and finish > JNI global reference alloc and free > JNI weak global reference alloc and free > compiled method load and unload > thread start and end > class file data ready for instrumentation > class load and unload > contended Java monitor wait to enter , entered, and exit > contended raw monitor wait to enter, entered, and exit > Java monitor wait and waited > monitor dump > heap dump > object dump > request to dump or reset profiling data > Java virtual machine initialization and shutdown