From: Pavel V. <va...@us...> - 2002-09-02 15:25:54
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data In directory usw-pr-cvs1:/tmp/cvs-serv2767 Modified Files: AllocStatData.java AllocStatIDObjectData.java AllStatIDObjectData.java ClassData.java CPUStatData.java CPUStatIDObjectData.java MonStatData.java MonStatIDObjectData.java TypeData.java Log Message: copy contrcutors for difference of snapshot Index: AllocStatData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocStatData.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocStatData.java 30 May 2002 22:38:17 -0000 1.5 --- AllocStatData.java 2 Sep 2002 15:25:46 -0000 1.6 *************** *** 80,87 **** --- 80,97 ---- public void setStat(IProf.sAllocStatData stat); + /** + * Fills statistics on instances. + * + * @param stat Object with statistics on instances. + */ + public void setStat( AllocStatData stat); + } /* * $Log$ + * Revision 1.6 2002/09/02 15:25:46 vachis + * copy contrcutors for difference of snapshot + * * Revision 1.5 2002/05/30 22:38:17 vachis * changed interface to jpi Index: AllocStatIDObjectData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocStatIDObjectData.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** AllocStatIDObjectData.java 30 May 2002 22:38:17 -0000 1.6 --- AllocStatIDObjectData.java 2 Sep 2002 15:25:47 -0000 1.7 *************** *** 58,63 **** sizeTotalInstances=stat.allocSizeInstancesTotal; } ! /** * Returns number of live instances. * --- 58,75 ---- sizeTotalInstances=stat.allocSizeInstancesTotal; } ! /** + * Fills statistics on instances. + * + * @param stat Object with statistics on instances. + */ + public void setStat( AllocStatData stat) { + numLiveInstances = stat.getLiveInstancesCount(); + numTotalInstances = stat.getTotalInstancesCount(); + sizeLiveInstances = stat.getLiveInstancesSize(); + sizeTotalInstances = stat.getTotalInstancesSize(); + } + + /** * Returns number of live instances. * *************** *** 132,139 **** --- 144,156 ---- public void removeAllocStatListener( AllocStatListener listener) { } + + } /* * $Log$ + * Revision 1.7 2002/09/02 15:25:47 vachis + * copy contrcutors for difference of snapshot + * * Revision 1.6 2002/05/30 22:38:17 vachis * changed interface to jpi Index: AllStatIDObjectData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllStatIDObjectData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** AllStatIDObjectData.java 30 May 2002 22:38:17 -0000 1.2 --- AllStatIDObjectData.java 2 Sep 2002 15:25:47 -0000 1.3 *************** *** 273,275 **** --- 273,306 ---- public void removeMonStatListener( MonStatListener listener) { } + + + /** + * Fills statistics on instances. + * + * @param stat Object with statistics on instances. + */ + public void setStat( AllocStatData stat) { + numLiveInstances = stat.getLiveInstancesCount(); + numTotalInstances = stat.getTotalInstancesCount(); + sizeLiveInstances = stat.getLiveInstancesSize(); + sizeTotalInstances = stat.getTotalInstancesSize(); + } + + /** Fills statistics on instances. + * + * @param stat Object with statistics on instances. + */ + public void setStat( CPUStatData stat) { + cpuPureTime=stat.getCPUPureTime(); + cpuHits=stat.getCPUHitsCount(); + } + + /** Fills statistics on instances. + * + * @param stat Object with statistics on instances. + */ + public void setStat( MonStatData stat) { + monPureTime=stat.getMonPureTime(); + monHits=stat.getMonHitsCount(); + } } Index: ClassData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/ClassData.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** ClassData.java 30 May 2002 22:38:17 -0000 1.14 --- ClassData.java 2 Sep 2002 15:25:47 -0000 1.15 *************** *** 98,101 **** --- 98,112 ---- /** + * Creates new ClassData, analogy of copy constructor, don't copy fields or any other + * lists. + * + * @param source copy data from this source + */ + ClassData( ClassData source ) { + this( source.getID(), source.getName(), source.getSourceFileName(), + new ArrayList(0), source.isActive()); + } + + /** * Adds new method defined in this class. * *************** *** 190,193 **** --- 201,207 ---- /* * $Log$ + * Revision 1.15 2002/09/02 15:25:47 vachis + * copy contrcutors for difference of snapshot + * * Revision 1.14 2002/05/30 22:38:17 vachis * changed interface to jpi Index: CPUStatData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CPUStatData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** CPUStatData.java 6 May 2002 17:32:13 -0000 1.4 --- CPUStatData.java 2 Sep 2002 15:25:47 -0000 1.5 *************** *** 58,65 **** --- 58,74 ---- */ void setStat(IProf.sCpuStatData stat); + + /** Fills statistics on instances. + * + * @param stat Object with statistics on instances. + */ + public void setStat( CPUStatData stat); } /* * $Log$ + * Revision 1.5 2002/09/02 15:25:47 vachis + * copy contrcutors for difference of snapshot + * * Revision 1.4 2002/05/06 17:32:13 vachis * new api implemention Index: CPUStatIDObjectData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CPUStatIDObjectData.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** CPUStatIDObjectData.java 30 May 2002 22:38:17 -0000 1.6 --- CPUStatIDObjectData.java 2 Sep 2002 15:25:47 -0000 1.7 *************** *** 83,86 **** --- 83,95 ---- } + /** Fills statistics on instances. + * + * @param stat Object with statistics on instances. + */ + public void setStat( CPUStatData stat) { + pureTime=stat.getCPUPureTime(); + hits=stat.getCPUHitsCount(); + } + /** * Adds listener to changes in CPU data *************** *** 102,105 **** --- 111,117 ---- /* * $Log$ + * Revision 1.7 2002/09/02 15:25:47 vachis + * copy contrcutors for difference of snapshot + * * Revision 1.6 2002/05/30 22:38:17 vachis * changed interface to jpi Index: MonStatData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/MonStatData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** MonStatData.java 6 May 2002 17:32:13 -0000 1.2 --- MonStatData.java 2 Sep 2002 15:25:47 -0000 1.3 *************** *** 59,62 **** --- 59,68 ---- */ void setStat(IProf.sMonStatData stat); + + /** Fills statistics on instances. + * + * @param stat Object with statistics on instances. + */ + public void setStat( MonStatData stat); } *************** *** 65,68 **** --- 71,77 ---- /* * $Log$ + * Revision 1.3 2002/09/02 15:25:47 vachis + * copy contrcutors for difference of snapshot + * * Revision 1.2 2002/05/06 17:32:13 vachis * new api implemention Index: MonStatIDObjectData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/MonStatIDObjectData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** MonStatIDObjectData.java 30 May 2002 22:38:17 -0000 1.4 --- MonStatIDObjectData.java 2 Sep 2002 15:25:47 -0000 1.5 *************** *** 79,82 **** --- 79,92 ---- } + /** Fills statistics on instances. + * + * @param stat Object with statistics on instances. + */ + public void setStat( MonStatData stat) { + pureTime=stat.getMonPureTime(); + hits=stat.getMonHitsCount(); + } + + /** * Adds listener to changes in Monitor data *************** *** 98,101 **** --- 108,114 ---- /* * $Log$ + * Revision 1.5 2002/09/02 15:25:47 vachis + * copy contrcutors for difference of snapshot + * * Revision 1.4 2002/05/30 22:38:17 vachis * changed interface to jpi Index: TypeData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/TypeData.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** TypeData.java 24 Jul 2002 22:29:22 -0000 1.5 --- TypeData.java 2 Sep 2002 15:25:47 -0000 1.6 *************** *** 130,133 **** --- 130,147 ---- /** + * Creates new TypeData, anlogy of copy constructor. + * @param source copy data from this source + * @param componentClass class related to this type (class or array of classes), may be NULL for arrays of ints,bytes,etc.. + * @param virtualMachineImage VirtualMachineImage this method belongs to. The VirtualMachineImage could be live + * (realtime implementation) or static (snaphshot). + */ + TypeData(TypeData source, ClassData componentClass, + VirtualMachineImageRef vmImage) { + this( source.getID(), componentClass, source.arrayType, vmImage ); + + this.setStat( source ); + } + + /** * Adds method where instance of this type (class or array of classes) was allocated. * *************** *** 299,302 **** --- 313,319 ---- /* * $Log$ + * Revision 1.6 2002/09/02 15:25:47 vachis + * copy contrcutors for difference of snapshot + * * Revision 1.5 2002/07/24 22:29:22 vachis * implements new interfaces for getting roots and info |