Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl
In directory usw-pr-cvs1:/tmp/cvs-serv25249
Modified Files:
VirtualMachineImpl.java
Log Message:
add implementation of realtime interface (fasade)
Index: VirtualMachineImpl.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/VirtualMachineImpl.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** VirtualMachineImpl.java 15 Jul 2002 21:48:06 -0000 1.8
--- VirtualMachineImpl.java 22 Jul 2002 00:17:29 -0000 1.9
***************
*** 26,29 ****
--- 26,30 ----
import net.sourceforge.javaprofiler.jpiimpl.commun.*;
import net.sourceforge.javaprofiler.jpiimpl.data.*;
+ import net.sourceforge.javaprofiler.jpiimpl.realtime.*;
/**
***************
*** 37,40 ****
--- 38,43 ----
private boolean isSuspendedVM;
private Process process=null;
+
+ private VirtualMachineImageRef realtime=null;
/**
***************
*** 45,48 ****
--- 48,52 ----
public VirtualMachineImpl(IProf iprof) {
this.iprof=iprof;
+ realtime = new ImageR( iprof, false );
}
***************
*** 250,293 ****
}
public List getThreads() {
! return null;
}
public List getMethods() {
! return null;
}
public List getCPUTraces() {
! return null;
}
public List getAllocTraces() {
! return null;
}
public List getMonTraces() {
! return null;
}
public List getTypes() {
! return null;
}
public List getThreadGroups() {
! return null;
}
public List getClasses() {
! return null;
}
public List getGCRuns() {
! return null;
}
public void addChildrenListener( int type, ChildrenListener listener) {
}
public void removeChildrenListener( int type, ChildrenListener listener) {
}
--- 254,307 ----
}
+ //FIXME
+ /**Returns realtime image of library. After that you can access information in library
+ * withtout creating snapshot. For one instace of VirtalMachineImpl it returns the same object.
+ */
+ public VirtualMachineImageRef getRealtimeImage() {
+ return realtime;
+ }
+
public List getThreads() {
! return realtime.getThreads();
}
public List getMethods() {
! return realtime.getMethods();
}
public List getCPUTraces() {
! return realtime.getCPUTraces();
}
public List getAllocTraces() {
! return realtime.getAllocTraces();
}
public List getMonTraces() {
! return realtime.getMonTraces();
}
public List getTypes() {
! return realtime.getTypes();
}
public List getThreadGroups() {
! return realtime.getThreadGroups();
}
public List getClasses() {
! return realtime.getClasses();
}
public List getGCRuns() {
! return realtime.getGCRuns();
}
public void addChildrenListener( int type, ChildrenListener listener) {
+ realtime.addChildrenListener( type, listener );
}
public void removeChildrenListener( int type, ChildrenListener listener) {
+ realtime.removeChildrenListener( type, listener );
}
***************
*** 296,299 ****
--- 310,316 ----
/*
* $Log$
+ * Revision 1.9 2002/07/22 00:17:29 vachis
+ * add implementation of realtime interface (fasade)
+ *
* Revision 1.8 2002/07/15 21:48:06 vachis
* method createSnapshot() accepts configuration class
|