|
From: Lukas P. <pe...@us...> - 2002-08-23 18:21:14
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes
In directory usw-pr-cvs1:/tmp/cvs-serv22415
Modified Files:
SessionNode.java
Log Message:
added realtime nodes
Index: SessionNode.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/SessionNode.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** SessionNode.java 14 Jul 2002 18:04:57 -0000 1.4
--- SessionNode.java 23 Aug 2002 18:21:12 -0000 1.5
***************
*** 31,34 ****
--- 31,35 ----
import net.sourceforge.javaprofiler.jpi.Snapshot;
+ import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineImpl;
import net.sourceforge.javaprofiler.module.actions.*;
import net.sourceforge.javaprofiler.module.data.Session;
***************
*** 45,49 ****
public SessionNode(Session session) {
! super(Children.LEAF);
this.session=session;
setIconBase("/net/sourceforge/javaprofiler/module/resources/SessionNodeIcon");
--- 46,51 ----
public SessionNode(Session session) {
! super(new RealtimeTextChildren(new String[]{"ThreadGroups", "Threads",
! "Classes", "Types", "Methods"}));
this.session=session;
setIconBase("/net/sourceforge/javaprofiler/module/resources/SessionNodeIcon");
***************
*** 108,111 ****
--- 110,114 ----
public void destroy() {
+ ((VirtualMachineImpl) session.getVM()).destroyRealtimeImage();
session.getVM().exit(0);
ProfilerData.getData().removeSession(session);
***************
*** 152,159 ****
--- 155,169 ----
}
+ /** Returns realtime image object. */
+ public Object getData() {
+ return ((VirtualMachineImpl) session.getVM()).realtimeImage();
+ }
}
/*
* $Log$
+ * Revision 1.5 2002/08/23 18:21:12 petrul
+ * added realtime nodes
+ *
* Revision 1.4 2002/07/14 18:04:57 stolis
* Resource bundle is static, not instance field.
|