Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data In directory usw-pr-cvs1:/tmp/cvs-serv25097 Modified Files: TraceData.java ThreadGroupData.java ThreadData.java MethodData.java GCData.java CPUTraceData.java CPUThreadTraceData.java CPUThreadMethodData.java CPUStatIDObjectData.java CPUStatData.java ClassData.java AllocTraceData.java AllocThreadTraceData.java AllocThreadMethodData.java AllocThreadClassTraceData.java AllocThreadClassMethodData.java AllocThreadClassData.java AllocClassTraceData.java AllocClassMethodData.java AllocClassData.java AllocArenaData.java Log Message: Contructors from IProf.sID and monitors statistic info Index: TraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/TraceData.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** TraceData.java 2001/09/29 21:01:33 1.3 --- TraceData.java 2001/11/20 22:23:37 1.4 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Trace of some method. *************** *** 41,44 **** --- 43,49 ---- /* * $Log$ + * Revision 1.4 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.3 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: ThreadGroupData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/ThreadGroupData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** ThreadGroupData.java 2001/09/29 21:01:33 1.2 --- ThreadGroupData.java 2001/11/20 22:23:37 1.3 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Information about one thread group. *************** *** 49,52 **** --- 51,64 ---- /** + * Creates new ThreadGroupData. + * + * @param sid data returned by communication layer + */ + ThreadGroupData( IProf.sID sid ) { + this( sid.objId, "" ); //sid...method ); + //PENDING + } + + /** * Returns name of this thread group. * *************** *** 88,91 **** --- 100,106 ---- /* * $Log$ + * Revision 1.3 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.2 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: ThreadData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/ThreadData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** ThreadData.java 2001/09/29 21:01:33 1.4 --- ThreadData.java 2001/11/20 22:23:37 1.5 *************** *** 23,30 **** import java.util.*; /** * Information about one thread. * ! * @author Jan Stola */ public class ThreadData extends AllocStatIDObjectData { --- 23,32 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Information about one thread. * ! * @author Jan Stola, Pavel Vacha */ public class ThreadData extends AllocStatIDObjectData { *************** *** 59,62 **** --- 61,70 ---- /** + * Map of methods invoked in this thread. + * Mapping of {@link MonThreadMethodData} objects and method IDs. + */ + private Map MonMethods; + + /** * Creates new ThreadData. * *************** *** 81,84 **** --- 89,104 ---- /** + * Creates new ThreadData. + * + * @param sid data returned by communication layer + * @param group group of this thread. + * @param parent parent of this thread. + */ + ThreadData( IProf.sID sid, ThreadGroupData group, ThreadData parent ) { + this( sid.objId, "", group, parent, false ); //sid...method ); + //PENDING + } + + /** * Returns name of this thread. * *************** *** 232,239 **** --- 252,290 ---- } + /** + * Map of methods invoked in this thread. (monitors data) + * + * @return mapping of {@link MonThreadMethodData} objects and method IDs. + */ + public Map getMonMethods() { + return MonMethods; + } + + /** + * Adds method invoked in this thread. (monitors data) + * + * @param method method invoked in this thread. + */ + void addMonMethod(MonThreadMethodData method) { + MonMethods.put(new Integer(method.getMethod().getID()), method); + } + + /** + * Returns method (with given ID) invoked in this thread. + * + * @param ID ID of the method. (monitors data) + * @return method (with given ID) invoked in this thread + * or <code>null</code> if such method does not exist. + */ + public MonThreadMethodData getMonMethod(int ID) { + return (MonThreadMethodData)MonMethods.get(new Integer(ID)); + } } /* * $Log$ + * Revision 1.5 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: MethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/MethodData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** MethodData.java 2001/09/29 21:01:33 1.4 --- MethodData.java 2001/11/20 22:23:37 1.5 *************** *** 23,37 **** import java.util.*; /** * Method of some class. * ! * @author Jan Stola */ ! public class MethodData extends IDObjectData implements AllocStatData, CPUStatData { // Implementation of CPUStatData interface. /** Pure time spent in this method. */ ! private long time; /** How many times was this method called. */ ! private long hits; // Implementation of AllocStatData interface. /** Number of live instances. */ --- 23,45 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Method of some class. * ! * @author Jan Stola, Pavel Vacha */ ! public class MethodData extends IDObjectData implements AllocStatData, CPUStatData, ! MonStatData { // Implementation of CPUStatData interface. /** Pure time spent in this method. */ ! private long cpuTime; /** How many times was this method called. */ ! private long cpuHits; ! // Implementation of MontatData interface. ! /** Pure time spent by wating for monitors. */ ! private long monTime; ! /** How many times wated this method */ ! private long monHits; // Implementation of AllocStatData interface. /** Number of live instances. */ *************** *** 74,77 **** --- 82,95 ---- */ private HashMap CPUThreads; + /** + * Map of traces in which this method waited. + * Mapping of {@link CPUTraceData} objects and trace IDs. + */ + private HashMap MonTraces; + /** + * Map of threads in which this method waited. + * Mapping of {@link CPUThreadMethodData} objects and thread IDs. + */ + private HashMap MonThreads; /** *************** *** 97,103 **** --- 115,134 ---- classes=new HashMap(); CPUThreads=new HashMap(); + MonTraces=new HashMap(); + MonThreads=new HashMap(); } /** + * Creates new MethodData. + * + * @param sid data returned by communication layer + * @param clazz class this method belongs to. + */ + MethodData( IProf.sID sid, ClassData clazz ) { + this( sid.objId, "", "", 0, 0, clazz ); //sid...method ); + //PENDING + } + + /** * Returns name of the method. * *************** *** 177,186 **** * Returns map of traces of this method. * ! * @return mapping of {@link AllocTraceData} objects and trace IDs. */ public Map getCPUTraces() { return CPUTraces; } ! /** * Adds trace of this method. --- 208,217 ---- * Returns map of traces of this method. * ! * @return mapping of {@link CPUTraceData} objects and trace IDs. */ public Map getCPUTraces() { return CPUTraces; } ! /** * Adds trace of this method. *************** *** 188,195 **** * @param trace trace of this method. */ ! void addCPUTrace(AllocTraceData trace) { CPUTraces.put(new Integer(trace.getID()), trace); } /** * Returns trace (with given ID) of this method. --- 219,246 ---- * @param trace trace of this method. */ ! void addCPUTrace(CPUTraceData trace) { CPUTraces.put(new Integer(trace.getID()), trace); } + + + /** + * Returns map of monitor traces of this method. + * + * @return mapping of {@link MonTraceData} objects and trace IDs. + */ + public Map getMonTraces() { + return MonTraces; + } + /** + * Adds monitor trace of this method. + * + * @param trace monitor trace of this method. + */ + void addMonTrace(MonTraceData trace) { + MonTraces.put(new Integer(trace.getID()), trace); + } + + /** * Returns trace (with given ID) of this method. *************** *** 262,265 **** --- 313,345 ---- } + /** + * Returns threads in which this method was waiting. + * + * @return mapping of {@link MonThreadMethodData} objects and thread IDs. + */ + public Map getMonThreads() { + return MonThreads; + } + + /** + * Adds threads in which this method was wating. + * + * @param thread threads in which this method was waiting. + */ + void addMonThread(MonThreadMethodData thread) { + MonThreads.put(new Integer(thread.getThread().getID()), thread); + } + + /** + * Returns thread (with given ID) in which this method was waiting. + * + * @param ID ID of the thread. + * @return thread (with given ID) in which this method was wating + * or <code>null</code> if such thread does not exist. + */ + public MonThreadMethodData getMonThread(int ID) { + return (MonThreadMethodData)CPUThreads.get(new Integer(ID)); + } + // Implementation of CPUStatData interface. *************** *** 270,276 **** * @param time pure time spent in this method. */ ! public void addToStat(long hits, long time) { ! this.hits+=hits; ! this.time+=time; } --- 350,356 ---- * @param time pure time spent in this method. */ ! public void addToCPUStat(long hits, long time) { ! this.cpuHits+=hits; ! this.cpuTime+=time; } *************** *** 280,285 **** * @return how many times was this method. */ ! public long getHitCount() { ! return hits; } --- 360,365 ---- * @return how many times was this method. */ ! public long getCPUHitCount() { ! return cpuHits; } *************** *** 289,294 **** * @return pure time spent in this method. */ ! public long getTime() { ! return time; } --- 369,374 ---- * @return pure time spent in this method. */ ! public long getCPUTime() { ! return cpuTime; } *************** *** 353,360 **** --- 433,475 ---- } + //Implementation of MonStatData interface + + + /** + * Adds given number of hits and time to the statistics. + * + * @param hits how many times wated this method + * @param time pure time spent by wating for monitors + */ + public void addToMonStat(long hits, long time) { + this.monHits+=hits; + this.monTime+=time; + } + + /** + * Returns how many times wated this method + * + * @return how many times wated this method + */ + public long getMonHitCount() { + return monHits; + } + + /** + * Returns pure time spent by wating for monitors + * + * @return pure time spent by wating for monitors + */ + public long getMonTime() { + return monTime; + } + } /* * $Log$ + * Revision 1.5 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: GCData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/GCData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** GCData.java 2001/09/29 21:01:33 1.2 --- GCData.java 2001/11/20 22:23:37 1.3 *************** *** 21,24 **** --- 21,25 ---- package net.sourceforge.javaprofiler.jpiimpl.data; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; /** * Data about one GC session. *************** *** 57,60 **** --- 58,71 ---- this.endTime=endTime; } + + /** + * Creates new GCData. + * + * @param sid data returned by communication layer + */ + GCData( IProf.sID sid ) { + this( sid.objId, 0, 0, 0, 0, 0 ); //sid...method ); + //PENDING + } /** *************** *** 107,110 **** --- 118,124 ---- /* * $Log$ + * Revision 1.3 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.2 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: CPUTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CPUTraceData.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** CPUTraceData.java 2001/09/29 21:01:33 1.3 --- CPUTraceData.java 2001/11/20 22:23:37 1.4 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * CPU profiling data for one trace. *************** *** 57,60 **** --- 59,73 ---- } + /** + * Creates new CPUTraceData. + * + * @param sid data returned by communication layer + * @param method profiling data for this method. + */ + CPUTraceData( IProf.sID sid, MethodData method ) { + this( sid.objId, method, null ); //sid...method ); + //PENDING + } + /** * Returns frames that make up this trace. *************** *** 108,111 **** --- 121,127 ---- /* * $Log$ + * Revision 1.4 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.3 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: CPUThreadTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CPUThreadTraceData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** CPUThreadTraceData.java 2001/09/29 21:01:33 1.2 --- CPUThreadTraceData.java 2001/11/20 22:23:37 1.3 *************** *** 21,24 **** --- 21,25 ---- package net.sourceforge.javaprofiler.jpiimpl.data; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; /** * CPU profiling data for one thread and trace. *************** *** 46,49 **** --- 47,63 ---- } + /** + * Creates new CPUThreadTraceData. + * + * @param sid data returned by communication layer + * @param threadMethod profiling data for this thread and method. + * @param trace profiling data for this trace. + */ + CPUThreadTraceData( IProf.sID sid, CPUThreadMethodData threadMethod, + CPUTraceData trace ) { + this( sid.objId, threadMethod, trace ); + //PENDING + } + /** * Returns profiling data for this thread and method. *************** *** 68,71 **** --- 82,88 ---- /* * $Log$ + * Revision 1.3 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.2 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: CPUThreadMethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CPUThreadMethodData.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** CPUThreadMethodData.java 2001/09/29 21:01:33 1.3 --- CPUThreadMethodData.java 2001/11/20 22:23:37 1.4 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * CPU profiling data for one thread and method. *************** *** 54,57 **** --- 56,71 ---- /** + * Creates new CPUThreadMethodData. + * + * @param sid data returned by communication layer + * @param thread profiling data for this thread. + * @param method profiling data for this method. + */ + CPUThreadMethodData( IProf.sID sid, ThreadData thread, MethodData method ) { + this( sid.objId, thread, method ); + //PENDING + } + + /** * Returns profiling data for this thread. * *************** *** 104,107 **** --- 118,124 ---- /* * $Log$ + * Revision 1.4 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.3 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: CPUStatIDObjectData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CPUStatIDObjectData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** CPUStatIDObjectData.java 2001/09/29 21:01:33 1.2 --- CPUStatIDObjectData.java 2001/11/20 22:23:37 1.3 *************** *** 21,24 **** --- 21,25 ---- package net.sourceforge.javaprofiler.jpiimpl.data; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; /** * Class with statistic data for CPU profiling. *************** *** 48,52 **** * @param time pure time spent in this method or trace. */ ! public void addToStat(long hits, long time) { this.hits+=hits; this.time+=time; --- 49,53 ---- * @param time pure time spent in this method or trace. */ ! public void addToCPUStat(long hits, long time) { this.hits+=hits; this.time+=time; *************** *** 58,62 **** * @return how many times was this method or trace called. */ ! public long getHitCount() { return hits; } --- 59,63 ---- * @return how many times was this method or trace called. */ ! public long getCPUHitCount() { return hits; } *************** *** 67,71 **** * @return pure time spent in this method or trace. */ ! public long getTime() { return time; } --- 68,72 ---- * @return pure time spent in this method or trace. */ ! public long getCPUTime() { return time; } *************** *** 75,78 **** --- 76,82 ---- /* * $Log$ + * Revision 1.3 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.2 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: CPUStatData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CPUStatData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** CPUStatData.java 2001/09/29 21:01:33 1.2 --- CPUStatData.java 2001/11/20 22:23:37 1.3 *************** *** 35,39 **** * @param time pure time spent in this method or trace. */ ! public void addToStat(long hits, long time); /** --- 35,39 ---- * @param time pure time spent in this method or trace. */ ! public void addToCPUStat(long hits, long time); /** *************** *** 42,46 **** * @return how many times was this method or trace called. */ ! public long getHitCount(); /** --- 42,46 ---- * @return how many times was this method or trace called. */ ! public long getCPUHitCount(); /** *************** *** 49,53 **** * @return pure time spent in this method or trace. */ ! public long getTime(); } --- 49,53 ---- * @return pure time spent in this method or trace. */ ! public long getCPUTime(); } *************** *** 55,58 **** --- 55,61 ---- /* * $Log$ + * Revision 1.3 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.2 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: ClassData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/ClassData.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** ClassData.java 2001/09/29 21:01:33 1.3 --- ClassData.java 2001/11/20 22:23:37 1.4 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Java class. *************** *** 91,94 **** --- 93,106 ---- /** + * Creates new ClassData. + * + * @param sid data returned by communication layer + */ + ClassData( IProf.sID sid ) { + this( sid.objId, "", "", 0, 0, 0, null, 0, null, false ); //sid...method ); + //PENDING + } + + /** * Sets methods defined in this class. * *************** *** 195,198 **** --- 207,213 ---- /* * $Log$ + * Revision 1.4 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.3 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: AllocTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTraceData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocTraceData.java 2001/09/29 21:01:33 1.4 --- AllocTraceData.java 2001/11/20 22:23:37 1.5 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Allocation data for one trace. *************** *** 58,61 **** --- 60,75 ---- /** + * Creates new AllocTraceData. + * + * @param sid data returned by communication layer + * @param method allocation data for this method. + * <code>List</code> of {@link TraceFrameData} objects. + */ + AllocTraceData( IProf.sID sid, MethodData method ) { + this( sid.objId, method, null ); //sid.info.frames + //PENDING + } + + /** * Returns frames that make up this trace. * *************** *** 109,112 **** --- 123,129 ---- /* * $Log$ + * Revision 1.5 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: AllocThreadTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadTraceData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocThreadTraceData.java 2001/09/29 21:01:33 1.4 --- AllocThreadTraceData.java 2001/11/20 22:23:37 1.5 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Allocation data for one thread and trace. *************** *** 54,57 **** --- 56,71 ---- /** + * Creates new AllocThreadTraceData. + * + * @param sid data returned by communication layer + * @param threadMethod allocation data for this thread and method. + */ + AllocThreadTraceData( IProf.sID sid, AllocThreadMethodData threadMethod, + AllocTraceData trace ) { + this( sid.objId, threadMethod, trace ); + //PENDING + } + + /** * Returns allocation data for this thread and method. * *************** *** 109,112 **** --- 123,129 ---- /* * $Log$ + * Revision 1.5 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: AllocThreadMethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadMethodData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocThreadMethodData.java 2001/09/29 21:01:33 1.4 --- AllocThreadMethodData.java 2001/11/20 22:23:37 1.5 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Allocation data for one thread and method. *************** *** 59,62 **** --- 61,76 ---- } + /** + * Creates new AllocThreadMethodData. + * + * @param sid data returned by communication layer + * @param thread allocation data for this thread. + * @param method allocation data for this method. + */ + AllocThreadMethodData( IProf.sID sid, ThreadData thread, MethodData method ) { + this( sid.objId, thread, method ); + //PENDING + } + /** * Returns allocation data for this thread. *************** *** 142,145 **** --- 156,162 ---- /* * $Log$ + * Revision 1.5 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: AllocThreadClassTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadClassTraceData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** AllocThreadClassTraceData.java 2001/09/29 21:01:33 1.2 --- AllocThreadClassTraceData.java 2001/11/20 22:23:37 1.3 *************** *** 21,24 **** --- 21,25 ---- package net.sourceforge.javaprofiler.jpiimpl.data; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; /** * Allocation data for one class, thread and trace. *************** *** 51,54 **** --- 52,70 ---- } + /** + * Creates new AllocThreadClassTraceData. + * + * @param sid data returned by communication layer + * @param classTrace allocation data for this class and trace. + * @param threadClassMethod allocation data for this class, thread and method. + * @param threadTrace allocation data for this thread and trace. + */ + AllocThreadClassTraceData( IProf.sID sid, AllocClassTraceData classTrace, + AllocThreadClassMethodData threadClassMethod, + AllocThreadTraceData threadTrace ) { + this( sid.objId, classTrace, threadClassMethod, threadTrace ); + //PENDING + } + /** * Returns allocation data for this class and trace. *************** *** 82,85 **** --- 98,104 ---- /* * $Log$ + * Revision 1.3 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.2 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: AllocThreadClassMethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadClassMethodData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocThreadClassMethodData.java 2001/09/29 21:01:33 1.4 --- AllocThreadClassMethodData.java 2001/11/20 22:23:37 1.5 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Allocation data for one class, method and thread. *************** *** 58,61 **** --- 60,78 ---- traces=new HashMap(); } + + + /** + * Creates new AllocThreadClassMethodData. + * + * @param sid data returned by communication layer + * @param threadClass allocation data for this class and thread. + * @param classMethod allocation data for this class and method. + * @param threadMethod allocation data for this thread and method. + */ + AllocThreadClassMethodData( IProf.sID sid, AllocThreadClassData threadClass, + AllocClassMethodData classMethod, AllocThreadMethodData threadMethod ) { + this( sid.objId, threadClass, classMethod, threadMethod ); + //PENDING + } /** *************** *** 124,127 **** --- 141,147 ---- /* * $Log$ + * Revision 1.5 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: AllocThreadClassData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadClassData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocThreadClassData.java 2001/09/29 21:01:33 1.4 --- AllocThreadClassData.java 2001/11/20 22:23:37 1.5 *************** *** 23,26 **** --- 23,27 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; /** * Allocation data for one thread and class. *************** *** 53,56 **** --- 54,70 ---- } + /** + * Creates new AllocThreadClassdData. + * + * @param sid data returned by communication layer + * @param thread allocation data for this thread. + * @param clazz allocation data for this class. + */ + AllocThreadClassData( IProf.sID sid, ThreadData thread, AllocClassData clazz ) { + this( sid.objId, thread, clazz ); + //PENDING + } + + /** * Returns allocation data for this thread. *************** *** 109,112 **** --- 123,129 ---- /* * $Log$ + * Revision 1.5 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: AllocClassTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocClassTraceData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocClassTraceData.java 2001/09/29 21:01:33 1.4 --- AllocClassTraceData.java 2001/11/20 22:23:37 1.5 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Allocation data for one class and trace. *************** *** 55,58 **** --- 57,72 ---- /** + * Creates new AllocClassTraceData. + * @param sid data returned by communication layer + * @param trace allocation data for this trace. + * @param classMethod allocation data for this class and method. + */ + AllocClassTraceData( IProf.sID sid, AllocClassMethodData classMethod, + AllocTraceData trace) { + this( sid.objId, classMethod, trace ); + //PENDING + } + + /** * Returns allocation data for this class and method. * *************** *** 109,112 **** --- 123,129 ---- /* * $Log$ + * Revision 1.5 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: AllocClassMethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocClassMethodData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocClassMethodData.java 2001/09/29 21:01:33 1.4 --- AllocClassMethodData.java 2001/11/20 22:23:37 1.5 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Allocation data for one class and method. *************** *** 60,63 **** --- 62,77 ---- threads=new HashMap(); } + + /** + * Creates new AllocClassMethodData. + * + * @param sid data returned by communication layer + * @param method allocation data for this method. + * @param clazz allocation data for this class. + */ + AllocClassMethodData( IProf.sID sid, AllocClassData clazz, MethodData method ) { + this( sid.objId, clazz, method ); + //PENDING + } /** *************** *** 95,99 **** * allocated. */ ! void addTraces(AllocClassTraceData trace) { traces.put(new Integer(trace.getTrace().getID()), trace); } --- 109,113 ---- * allocated. */ ! void addTrace(AllocClassTraceData trace) { traces.put(new Integer(trace.getTrace().getID()), trace); } *************** *** 128,132 **** * class allocated. */ ! void addThreads(AllocThreadClassMethodData thread) { threads.put(new Integer(thread.getThreadClass().getThread().getID()), thread); } --- 142,146 ---- * class allocated. */ ! void addThread(AllocThreadClassMethodData thread) { threads.put(new Integer(thread.getThreadClass().getThread().getID()), thread); } *************** *** 148,151 **** --- 162,168 ---- /* * $Log$ + * Revision 1.5 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: AllocClassData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocClassData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocClassData.java 2001/09/29 21:01:33 1.4 --- AllocClassData.java 2001/11/20 22:23:37 1.5 *************** *** 23,26 **** --- 23,27 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; /** * Allocation data for one class. *************** *** 64,67 **** --- 65,78 ---- /** + * Creates new AllocClassData. + * @param sid data returned by communication layer + * @param clazz class to which this allocation data belongs. + */ + AllocClassData( IProf.sID sid, ClassData clazz ) { + this( sid.objId, clazz, 0 ); //sid.info...... ) ; + //PENDING + } + + /** * Returns class to which this allocation data belongs. * *************** *** 144,147 **** --- 155,161 ---- /* * $Log$ + * Revision 1.5 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. Index: AllocArenaData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocArenaData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** AllocArenaData.java 2001/09/29 21:01:33 1.2 --- AllocArenaData.java 2001/11/20 22:23:37 1.3 *************** *** 23,26 **** --- 23,28 ---- import java.util.*; + import net.sourceforge.javaprofiler.jpiimpl.commun.*; + /** * Allocation data about one arena. *************** *** 58,61 **** --- 60,72 ---- /** + * Creates new AllocArenaData. + * @param sid data returned by communication layer + */ + AllocArenaData( IProf.sID sid ) { + super( sid.objId ); + //PENDING + } + + /** * Returns ID of the arena. * *************** *** 116,119 **** --- 127,133 ---- /* * $Log$ + * Revision 1.3 2001/11/20 22:23:37 vachis + * Contructors from IProf.sID and monitors statistic info + * * Revision 1.2 2001/09/29 21:01:33 stolis * Plural added in licenses. |