From: Pavel V. <va...@us...> - 2002-03-01 11:40:17
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data In directory usw-pr-cvs1:/tmp/cvs-serv12401/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data Modified Files: AllocInstanceData.java AllocThreadMethodData.java AllocThreadTraceData.java AllocThreadTypeData.java AllocThreadTypeMethodData.java AllocThreadTypeTraceData.java AllocTraceData.java AllocTypeData.java AllocTypeMethodData.java AllocTypeTraceData.java Log Message: doc changes Index: AllocInstanceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocInstanceData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocInstanceData.java 29 Sep 2001 21:01:33 -0000 1.4 --- AllocInstanceData.java 1 Mar 2002 11:40:12 -0000 1.5 *************** *** 34,38 **** private AllocArenaData arena; /** Where this instance was allocated. */ ! private AllocAbstractStatThreadClassData location; /** --- 34,38 ---- private AllocArenaData arena; /** Where this instance was allocated. */ ! private AllocAbstractStatThreadTypeData location; /** *************** *** 44,48 **** */ AllocInstanceData(int size, long objectID, AllocArenaData arena, ! AllocAbstractStatThreadClassData location) { this.size=size; this.objectID=objectID; --- 44,48 ---- */ AllocInstanceData(int size, long objectID, AllocArenaData arena, ! AllocAbstractStatThreadTypeData location) { this.size=size; this.objectID=objectID; *************** *** 81,88 **** * Gets location where this instance was allocated. * ! * @return {@link AllocAbstractStatThreadClassData} object determining * location where this instance was allocated. */ ! public AllocAbstractStatThreadClassData getLocation() { return location; } --- 81,88 ---- * Gets location where this instance was allocated. * ! * @return {@link AllocAbstractStatThreadTypeData} object determining * location where this instance was allocated. */ ! public AllocAbstractStatThreadTypeData getLocation() { return location; } *************** *** 92,95 **** --- 92,98 ---- /* * $Log$ + * Revision 1.5 2002/03/01 11:40:12 vachis + * doc changes + * * Revision 1.4 2001/09/29 21:01:33 stolis * Plural added in licenses. *************** *** 106,108 **** * no message * ! */ \ No newline at end of file --- 109,111 ---- * no message * ! */ Index: AllocThreadMethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadMethodData.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** AllocThreadMethodData.java 15 Feb 2002 22:37:30 -0000 1.10 --- AllocThreadMethodData.java 1 Mar 2002 11:40:12 -0000 1.11 *************** *** 36,41 **** private MethodData method; /** ! * Map of classes whose instances were allocated in this method and thread. ! * Mapping of {@link AllocThreadClassMethodData} objects and class IDs. */ private Map types; --- 36,41 ---- private MethodData method; /** ! * Map of types (classes or arrays of classes) whose instances were allocated in this method and thread. ! * Mapping of {@link AllocThreaTypeMethodData} objects and class IDs. */ private Map types; *************** *** 94,101 **** /** ! * Returns map of classes whose instances were allocated in this method * and thread. * ! * @return mapping of {@link AllocThreadClassMethodData} objects and class IDs. */ public Map getTypes() { --- 94,101 ---- /** ! * Returns map of types (classes or arrays of classes) whose instances were allocated in this method * and thread. * ! * @return mapping of {@link AllocThreadTypeMethodData} objects and class IDs. */ public Map getTypes() { *************** *** 104,115 **** /** ! * Adds allocClass whose were allocated in this given method ! * and thread. AllocClass can be instance of class its array. * ! * @param allocClass allocClass that were allocated in this method and thread. */ ! void addType(AllocThreadTypeMethodData allocClass) { //FIXME ! types.put(new Integer(allocClass.getID()), allocClass); } --- 104,115 ---- /** ! * Adds types that were allocated in this given method ! * and thread. Type can be instance of class or its array. * ! * @param allocType allocType that were allocated in this method and thread. */ ! void addType(AllocThreadTypeMethodData allocType) { //FIXME ! types.put(new Integer(allocType.getID()), allocType); } *************** *** 118,122 **** * in this method and thread. * ! * @param ID ID of the class. * @return class (with given ID) whose instances were allocated * in this method and thread or <code>null</code> if such class does --- 118,122 ---- * in this method and thread. * ! * @param ID ID of the type. * @return class (with given ID) whose instances were allocated * in this method and thread or <code>null</code> if such class does *************** *** 160,163 **** --- 160,166 ---- /* * $Log$ + * Revision 1.11 2002/03/01 11:40:12 vachis + * doc changes + * * Revision 1.10 2002/02/15 22:37:30 vachis * code refactorization Class..Data renamed to Type..Data Index: AllocThreadTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadTraceData.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** AllocThreadTraceData.java 15 Feb 2002 22:37:30 -0000 1.10 --- AllocThreadTraceData.java 1 Mar 2002 11:40:12 -0000 1.11 *************** *** 36,41 **** private AllocTraceData trace; /** ! * Map of classes whose instances were allocated in the given trace and thread. ! * Mapping of {@link AllocThreadClassTraceData} objects and class IDs. */ private Map types; --- 36,42 ---- private AllocTraceData trace; /** ! * Map of ! types (classes or arrays of classes) whose instances were allocated in the given trace and thread. ! * Mapping of {@link AllocThreadTypeTraceData} objects and class IDs. */ private Map types; *************** *** 88,95 **** /** ! * Returns map of classes whose instances were allocated in the given trace * and thread. * ! * @return mapping of {@link AllocThreadClassTraceData} objects and class IDs. */ public Map getTypes() { --- 89,96 ---- /** ! * Returns map of types (classes or arrays of classes) whose instances were allocated in the given trace * and thread. * ! * @return mapping of {@link AllocThreadTypeTraceData} objects and class IDs. */ public Map getTypes() { *************** *** 98,110 **** /** ! * Adds allocClass whose were allocated in this given trace ! * and thread. AllocClass can be instance of class its array. * ! * @param allocClass allocClass that were allocated in the given trace * and thread. */ ! void addType(AllocThreadTypeTraceData allocClass) { // FIXME: ! types.put(new Integer(allocClass.getID()), allocClass); } --- 99,111 ---- /** ! * Adds type that was allocated in this given trace ! * and thread. type can be instance of class or its array. * ! * @param allocType allocType that was allocated in the given trace * and thread. */ ! void addType(AllocThreadTypeTraceData allocType) { // FIXME: ! types.put(new Integer(allocType.getID()), allocType); } *************** *** 113,117 **** * the given trace and thread. * ! * @param ID ID of the class. * @return class (with given ID) whose instances were allocated in * the given trace and thread or <code>null</code> if such class does --- 114,118 ---- * the given trace and thread. * ! * @param ID ID of the type. * @return class (with given ID) whose instances were allocated in * the given trace and thread or <code>null</code> if such class does *************** *** 126,129 **** --- 127,133 ---- /* * $Log$ + * Revision 1.11 2002/03/01 11:40:12 vachis + * doc changes + * * Revision 1.10 2002/02/15 22:37:30 vachis * code refactorization Class..Data renamed to Type..Data Index: AllocThreadTypeData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadTypeData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** AllocThreadTypeData.java 15 Feb 2002 22:37:30 -0000 1.1 --- AllocThreadTypeData.java 1 Mar 2002 11:40:12 -0000 1.2 *************** *** 29,36 **** * @author Jan Stola */ ! public class AllocThreadTypeData extends AllocAbstractStatThreadClassData { /** Allocation data for this thread. */ private ThreadData thread; ! /** Allocation data for this class. */ private AllocTypeData type; /** --- 29,36 ---- * @author Jan Stola */ ! public class AllocThreadTypeData extends AllocAbstractStatThreadTypeData { /** Allocation data for this thread. */ private ThreadData thread; ! /** Allocation data for this type. */ private AllocTypeData type; /** *************** *** 41,66 **** /** ! * Creates new AllocThreadClassData. * * @param ID unique ID of this object. * @param thread allocation data for this thread. ! * @param clazz allocation data for this class. */ ! AllocThreadTypeData(int ID, ThreadData thread, AllocTypeData clazz) { super(ID); this.thread=thread; ! this.type=clazz; methods=new HashMap(); } /** ! * Creates new AllocThreadClassdData. * * @param sid data returned by communication layer * @param thread allocation data for this thread. ! * @param clazz allocation data for this class. */ ! AllocThreadTypeData( IProf.sID sid, ThreadData thread, AllocTypeData clazz ) { ! this( sid.objId, thread, clazz ); //if (sid.alloc!=null) //do not test this, its an error --- 41,66 ---- /** ! * Creates new AllocThreadTypeData. * * @param ID unique ID of this object. * @param thread allocation data for this thread. ! * @param type allocation data for this class. */ ! AllocThreadTypeData(int ID, ThreadData thread, AllocTypeData type) { super(ID); this.thread=thread; ! this.type=type; methods=new HashMap(); } /** ! * Creates new AllocThreadTypeData. * * @param sid data returned by communication layer * @param thread allocation data for this thread. ! * @param type allocation data for this type. */ ! AllocThreadTypeData( IProf.sID sid, ThreadData thread, AllocTypeData type ) { ! this( sid.objId, thread, type ); //if (sid.alloc!=null) //do not test this, its an error *************** *** 125,128 **** --- 125,131 ---- /* * $Log$ + * Revision 1.2 2002/03/01 11:40:12 vachis + * doc changes + * * Revision 1.1 2002/02/15 22:37:30 vachis * code refactorization Class..Data renamed to Type..Data Index: AllocThreadTypeMethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadTypeMethodData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** AllocThreadTypeMethodData.java 15 Feb 2002 22:37:30 -0000 1.1 --- AllocThreadTypeMethodData.java 1 Mar 2002 11:40:12 -0000 1.2 *************** *** 30,37 **** * @author Jan Stola */ ! public class AllocThreadTypeMethodData extends AllocAbstractStatThreadClassData { ! /** Allocation data for this class and thread. */ private AllocThreadTypeData threadType; ! /** Allocation data for this class and method. */ private AllocTypeMethodData typeMethod; /** Allocation data for this method and thread. */ --- 30,37 ---- * @author Jan Stola */ ! public class AllocThreadTypeMethodData extends AllocAbstractStatThreadTypeData { ! /** Allocation data for this type and thread. */ private AllocThreadTypeData threadType; ! /** Allocation data for this type and method. */ private AllocTypeMethodData typeMethod; /** Allocation data for this method and thread. */ *************** *** 39,43 **** /** * MAp of traces of this method in this thread where instances of this class ! * were allocated. Mapping of {@link AllocThreadClassMethodTraceData} objects * and trace IDs. */ --- 39,43 ---- /** * MAp of traces of this method in this thread where instances of this class ! * were allocated. Mapping of {@link AllocThreadTypeMethodTraceData} objects * and trace IDs. */ *************** *** 45,60 **** /** ! * Creates new AllocThreadClassMethodData. * * @param ID unique ID of this object. ! * @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. */ ! AllocThreadTypeMethodData(int ID, AllocThreadTypeData threadClass, ! AllocTypeMethodData classMethod, AllocThreadMethodData threadMethod) { super(ID); ! this.threadType=threadClass; ! this.typeMethod=classMethod; this.threadMethod=threadMethod; traces=new HashMap(); --- 45,60 ---- /** ! * Creates new AllocThreadTypeMethodData. * * @param ID unique ID of this object. ! * @param threadType allocation data for this type and thread. ! * @param typeMethod allocation data for this type and method. * @param threadMethod allocation data for this thread and method. */ ! AllocThreadTypeMethodData(int ID, AllocThreadTypeData threadType, ! AllocTypeMethodData typeMethod, AllocThreadMethodData threadMethod) { super(ID); ! this.threadType=threadType; ! this.typeMethod=typeMethod; this.threadMethod=threadMethod; traces=new HashMap(); *************** *** 63,76 **** /** ! * 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. */ ! AllocThreadTypeMethodData( IProf.sID sid, AllocThreadTypeData threadClass, ! AllocTypeMethodData classMethod, AllocThreadMethodData threadMethod ) { ! this( sid.objId, threadClass, classMethod, threadMethod ); //if (sid.alloc!=null) //do not test this, its an error --- 63,76 ---- /** ! * Creates new AllocThreadTypeMethodData. * * @param sid data returned by communication layer ! * @param threadType allocation data for this type and thread. ! * @param typeMethod allocation data for this type and method. * @param threadMethod allocation data for this thread and method. */ ! AllocThreadTypeMethodData( IProf.sID sid, AllocThreadTypeData threadType, ! AllocTypeMethodData typeMethod, AllocThreadMethodData threadMethod ) { ! this( sid.objId, threadType, typeMethod, threadMethod ); //if (sid.alloc!=null) //do not test this, its an error *************** *** 79,85 **** /** ! * Returns allocation data for this class and thread. * ! * @return allocation data for this class and thread. */ public AllocThreadTypeData getThreadType() { --- 79,85 ---- /** ! * Returns allocation data for this type and thread. * ! * @return allocation data for this type and thread. */ public AllocThreadTypeData getThreadType() { *************** *** 88,94 **** /** ! * Returns allocation data for this class and method. * ! * @return allocation data for this class and method. */ public AllocTypeMethodData getTypeMethod() { --- 88,94 ---- /** ! * Returns allocation data for this type and method. * ! * @return allocation data for this type and method. */ public AllocTypeMethodData getTypeMethod() { *************** *** 107,113 **** /** * Returns map of traces of this method in this thread where instances of this ! * class were allocated. * ! * @return mapping of {@link AllocThreadClassTraceData} objects and trace IDs. */ public Map getTraces() { --- 107,113 ---- /** * Returns map of traces of this method in this thread where instances of this ! * type (class or array of classes) were allocated. * ! * @return mapping of {@link AllocThreadTypeTraceData} objects and trace IDs. */ public Map getTraces() { *************** *** 117,124 **** /** * Adds trace of this method in this thread where instances of this ! * class were allocated. * * @param trace trace of this method in this thread where instances of this ! * class were allocated. */ void addTrace(AllocThreadTypeTraceData trace) { --- 117,124 ---- /** * Adds trace of this method in this thread where instances of this ! * type (class or array of classes) were allocated. * * @param trace trace of this method in this thread where instances of this ! * type were allocated. */ void addTrace(AllocThreadTypeTraceData trace) { *************** *** 143,146 **** --- 143,149 ---- /* * $Log$ + * Revision 1.2 2002/03/01 11:40:12 vachis + * doc changes + * * Revision 1.1 2002/02/15 22:37:30 vachis * code refactorization Class..Data renamed to Type..Data Index: AllocThreadTypeTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadTypeTraceData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** AllocThreadTypeTraceData.java 15 Feb 2002 22:37:30 -0000 1.1 --- AllocThreadTypeTraceData.java 1 Mar 2002 11:40:12 -0000 1.2 *************** *** 27,34 **** * @author Jan Stola */ ! public class AllocThreadTypeTraceData extends AllocAbstractStatThreadClassData { ! /** Allocation data for this class and trace. */ private AllocTypeTraceData typeTrace; ! /** Allocation data for this class, thread and method. */ private AllocThreadTypeMethodData threadTypeMethod; /** Allocation data for this thread and trace. */ --- 27,34 ---- * @author Jan Stola */ ! public class AllocThreadTypeTraceData extends AllocAbstractStatThreadTypeData { ! /** Allocation data for this type and trace. */ private AllocTypeTraceData typeTrace; ! /** Allocation data for this type, thread and method. */ private AllocThreadTypeMethodData threadTypeMethod; /** Allocation data for this thread and trace. */ *************** *** 36,61 **** /** ! * Creates new AllocThreadClassTraceData. * * @param ID unique ID of this object. ! * @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. */ ! AllocThreadTypeTraceData(int ID, AllocTypeTraceData classTrace, ! AllocThreadTypeMethodData threadClassMethod, AllocThreadTraceData threadTrace) { super(ID); ! this.typeTrace=classTrace; ! this.threadTypeMethod=threadClassMethod; this.threadTrace=threadTrace; } /** ! * 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. */ --- 36,61 ---- /** ! * Creates new AllocThreadTypeTraceData. * * @param ID unique ID of this object. ! * @param typeTrace allocation data for this type and trace. ! * @param threadTypeMethod allocation data for this type, thread and method. * @param threadTrace allocation data for this thread and trace. */ ! AllocThreadTypeTraceData(int ID, AllocTypeTraceData typeTrace, ! AllocThreadTypeMethodData threadTypeMethod, AllocThreadTraceData threadTrace) { super(ID); ! this.typeTrace=typeTrace; ! this.threadTypeMethod=threadTypeMethod; this.threadTrace=threadTrace; } /** ! * Creates new AllocThreadTypeTraceData. * * @param sid data returned by communication layer ! * @param typeTrace allocation data for this type and trace. ! * @param threadTypeMethod allocation data for this type, thread and method. * @param threadTrace allocation data for this thread and trace. */ *************** *** 70,76 **** /** ! * Returns allocation data for this class and trace. * ! * @return allocation data for this class and trace. */ public AllocTypeTraceData getTypeTrace() { --- 70,76 ---- /** ! * Returns allocation data for this type and trace. * ! * @return allocation data for this type and trace. */ public AllocTypeTraceData getTypeTrace() { *************** *** 79,85 **** /** ! * Returns allocation data for this class, thread and method. * ! * @return allocation data for this class, thread and method. */ public AllocThreadTypeMethodData getThreadTypeMethod() { --- 79,85 ---- /** ! * Returns allocation data for this type, thread and method. * ! * @return allocation data for this type, thread and method. */ public AllocThreadTypeMethodData getThreadTypeMethod() { *************** *** 100,103 **** --- 100,106 ---- /* * $Log$ + * Revision 1.2 2002/03/01 11:40:12 vachis + * doc changes + * * Revision 1.1 2002/02/15 22:37:30 vachis * code refactorization Class..Data renamed to Type..Data Index: AllocTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTraceData.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** AllocTraceData.java 16 Feb 2002 12:47:45 -0000 1.12 --- AllocTraceData.java 1 Mar 2002 11:40:12 -0000 1.13 *************** *** 39,44 **** private MethodData method; /** ! * Map of classes whose instances were allocated in this trace. ! * Mapping of {@link AllocClassTraceData} objects and class IDs. */ private Map types; --- 39,44 ---- private MethodData method; /** ! * Map of types (classes or arrays of classes) whose instances were allocated in this trace. ! * Mapping of {@link AllocTypeTraceData} objects and class IDs. */ private Map types; *************** *** 98,104 **** /** ! * Returns map of classes whose instances were allocated in this trace. * ! * @return mapping of {@link AllocClassTraceData} objects and class IDs. */ public Map getTypes() { --- 98,104 ---- /** ! * Returns map of types (classes or arrays of classes) whose instances were allocated in this trace. * ! * @return mapping of {@link AllocTypeTraceData} objects and class IDs. */ public Map getTypes() { *************** *** 107,127 **** /** ! * Adds allocClass whose were allocated in this trace. AllocClass ! * can be instance of class its array. * ! * @param allocClass allocClass that were allocated in this trace. */ ! void addType(AllocTypeTraceData allocClass) { //FIXMEE: ! types.put(new Integer(allocClass.getID()), allocClass); } /** ! * Returns class (with given ID) whose instances were allocated * in this trace. * ! * @param ID ID of the class. ! * @return class (with given ID) whose instances were allocated ! * in this trace or <code>null</code> if such class does not exist. */ public AllocTypeTraceData getType(int ID) { --- 107,127 ---- /** ! * Adds type that was allocated in this trace. Type ! * can be instance of class or its array. * ! * @param allocType allocType that were allocated in this trace. */ ! void addType(AllocTypeTraceData allocType) { //FIXMEE: ! types.put(new Integer(allocType.getID()), allocType); } /** ! * Returns type (with given ID) that instances were allocated * in this trace. * ! * @param ID ID of the type. ! * @return type (with given ID) that instances were allocated ! * in this trace or <code>null</code> if such type does not exist. */ public AllocTypeTraceData getType(int ID) { *************** *** 163,166 **** --- 163,169 ---- /* * $Log$ + * Revision 1.13 2002/03/01 11:40:12 vachis + * doc changes + * * Revision 1.12 2002/02/16 12:47:45 vachis * fix Index: AllocTypeData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeData.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** AllocTypeData.java 16 Feb 2002 16:21:53 -0000 1.3 --- AllocTypeData.java 1 Mar 2002 11:40:12 -0000 1.4 *************** *** 29,63 **** * @author Jan Stola */ ! public class AllocTypeData extends AllocAbstractStatThreadClassData { ! /** Class to which this allocation data belongs. */ private ClassData clazz; /** ! * Type of the class (for example JVMPI_NORMAL_OBJECT, JVMPI_CLASS, * JVMPI_BOOLEAN etc.) */ private int arrayType; //PENDING /** ! * Map of methods where instance of this class were allocated. ! * Mapping between {@link AllocClassMethodData} objects and method IDs. */ private Map methods; /** ! * Map of threads in which instances of this class were allocated. ! * Mapping between {@link AllocThreadClassData} objects and thread IDs. */ private Map threads; /** ! * Creates new AllocClassData. * * @param ID unique ID of this object. ! * @param classData class to which this allocation data belongs. ! * @param classID object ID of the Class object of this class. ! * @param type type of this class. */ ! AllocTypeData(int ID, ClassData classData, int type) { super(ID); this.clazz=classData; ! this.arrayType=type; methods=new HashMap(); //??use EMPTY_MAP threads= Collections.EMPTY_MAP; --- 29,63 ---- * @author Jan Stola */ ! public class AllocTypeData extends AllocAbstractStatThreadTypeData { ! /** Class related to this type (class or array of classes), may be NULL for arrays of ints,bytes,etc. */ private ClassData clazz; /** ! * Type of array (for example JVMPI_NORMAL_OBJECT, JVMPI_CLASS, * JVMPI_BOOLEAN etc.) */ private int arrayType; //PENDING /** ! * Map of methods where instance of this type (class or array of classes) were allocated. ! * Mapping between {@link AllocTypeMethodData} objects and method IDs. */ private Map methods; /** ! * Map of threads in which instances of this type (class or array of classes) were allocated. ! * Mapping between {@link AllocThreadTypeData} objects and thread IDs. */ private Map threads; /** ! * Creates new AllocTypeData. * * @param ID unique ID of this object. ! * @param classData class related to this type (class or array of classes), may be NULL for arrays of ints,bytes,etc.. ! * @param typeID object ID of the AllocType object. ! * @param arrayType arrayType of this type. */ ! AllocTypeData(int ID, ClassData classData, int arrayType) { super(ID); this.clazz=classData; ! this.arrayType=arrayType; methods=new HashMap(); //??use EMPTY_MAP threads= Collections.EMPTY_MAP; *************** *** 67,71 **** * Creates new AllocClassData. * @param sid data returned by communication layer ! * @param clazz class to which this allocation data belongs. */ AllocTypeData(IProf.sID sid, ClassData clazz) { --- 67,71 ---- * Creates new AllocClassData. * @param sid data returned by communication layer ! * @param clazz class related to this type (class or array of classes), may be NULL for arrays of ints,bytes,etc.. */ AllocTypeData(IProf.sID sid, ClassData clazz) { *************** *** 77,83 **** /** ! * Returns class to which this allocation data belongs. * ! * @return class to which this allocation data belongs. */ public ClassData getClazz() { --- 77,83 ---- /** ! * Returns class related to this type (class or array of classes). * ! * @return class related to this type (class or array of classes), may be NULL for arrays of ints,bytes,etc.. */ public ClassData getClazz() { *************** *** 86,92 **** /** ! * Returns type of the class. * ! * @return type of the class. */ public int getArrayType() { --- 86,92 ---- /** ! * Returns arrayType. * ! * @return arrayType. */ public int getArrayType() { *************** *** 95,101 **** /** ! * Returns map of methods where instance of this class were allocated. * ! * @return mapping between {@link AllocClassMethodData} objects and method IDs. */ public Map getMethods() { --- 95,101 ---- /** ! * Returns map of methods where instance of this type (class or array of classes) were allocated * ! * @return mapping between {@link AllocTypeMethodData} objects and method IDs. */ public Map getMethods() { *************** *** 104,108 **** /** ! * Adds method where instance of this class was allocated. * * @param method method where instance of this class were allocated. --- 104,108 ---- /** ! * Adds method where instance of this type (class or array of classes) was allocated. * * @param method method where instance of this class were allocated. *************** *** 113,120 **** /** ! * Returns method (with given ID) where instance of this class was allocated. * * @param ID ID of the method. ! * @return method (with given ID) where instance of this class was allocated * or <code>null</code> if such method does not exist. */ --- 113,120 ---- /** ! * Returns method (with given ID) where instance of this type (class or array of classes) was allocated. * * @param ID ID of the method. ! * @return method (with given ID) where instance of this type (class or array of classes) was allocated * or <code>null</code> if such method does not exist. */ *************** *** 124,130 **** /** ! * Return map of threads in which instances of this class were allocated. * ! * @return mapping between {@link AllocThreadClassData} objects and thread IDs. */ public Map getThreads() { --- 124,130 ---- /** ! * Return map of threads in which instances of this type (class or array of classes) were allocated. * ! * @return mapping between {@link AllocThreadTypeData} objects and thread IDs. */ public Map getThreads() { *************** *** 133,139 **** /** ! * Adds thread where instances of this class were allocated. * ! * @param thread where instances of this class were allocated. */ void addThread(AllocThreadTypeData thread) { --- 133,139 ---- /** ! * Adds thread where instances of this type (class or array of classes) were allocated. * ! * @param thread where instances of this type (class or array of classes) were allocated. */ void addThread(AllocThreadTypeData thread) { *************** *** 144,152 **** /** ! * Returns thread (with given ID) where instances of this class * were allocated. * * @param ID ID of the thread. ! * @return thread (with given ID) where instances of this class * were allocated or <code>null</code> if such thread does not exist. */ --- 144,152 ---- /** ! * Returns thread (with given ID) where instances of this type (class or array of classes) * were allocated. * * @param ID ID of the thread. ! * @return thread (with given ID) where instances of this type (class or array of classes) * were allocated or <code>null</code> if such thread does not exist. */ *************** *** 159,162 **** --- 159,165 ---- /* * $Log$ + * Revision 1.4 2002/03/01 11:40:12 vachis + * doc changes + * * Revision 1.3 2002/02/16 16:21:53 vachis * code refacorization Class.. to Type... (forgotten methods) Index: AllocTypeMethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeMethodData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** AllocTypeMethodData.java 15 Feb 2002 22:37:30 -0000 1.1 --- AllocTypeMethodData.java 1 Mar 2002 11:40:12 -0000 1.2 *************** *** 30,47 **** * @author Jan Stola */ ! public class AllocTypeMethodData extends AllocAbstractStatThreadClassData { ! /** Allocation data for this class. */ ! private AllocTypeData clazz; /** Allocation data for this method. */ private MethodData method; /** ! * Map of traces of the method in which instances of this class were ! * allocated. Mapping between {@link AllocClassTraceData} objects and * trace IDs. */ private Map traces; /** ! * Map of threads where the method was called and instances of this class ! * allocated. Mapping between {@link AllocThreadClassMethodData} objects * and thread IDs. */ --- 30,48 ---- * @author Jan Stola */ ! public class AllocTypeMethodData extends AllocAbstractStatThreadTypeData { ! /** Allocation data for this type. */ ! private AllocTypeData type; /** Allocation data for this method. */ private MethodData method; /** ! * Map of traces of the method in which instances of this type (class or array of classes) ! * were ! * allocated. Mapping between {@link AllocTypeTraceData} objects and * trace IDs. */ private Map traces; /** ! * Map of threads where the method was called and instances of this type (class or array of classes) ! * were allocated. Mapping between {@link AllocThreadClassMethodData} objects * and thread IDs. */ *************** *** 49,61 **** /** ! * Creates new AllocClassMethodData. * * @param ID unique ID of this object. ! * @param clazz allocation data for this class. * @param method allocation data for this method. */ ! AllocTypeMethodData(int ID, AllocTypeData clazz, MethodData method) { super(ID); ! this.clazz=clazz; this.method=method; traces=new HashMap(); --- 50,62 ---- /** ! * Creates new AllocTypeMethodData. * * @param ID unique ID of this object. ! * @param type allocation data for this type. * @param method allocation data for this method. */ ! AllocTypeMethodData(int ID, AllocTypeData type, MethodData method) { super(ID); ! this.type=type; this.method=method; traces=new HashMap(); *************** *** 64,75 **** /** ! * Creates new AllocClassMethodData. * * @param sid data returned by communication layer * @param method allocation data for this method. ! * @param clazz allocation data for this class. */ ! AllocTypeMethodData( IProf.sID sid, AllocTypeData clazz, MethodData method ) { ! this( sid.objId, clazz, method ); //if (sid.alloc!=null) //do not test this, its an error --- 65,76 ---- /** ! * Creates new AllocTypeMethodData. * * @param sid data returned by communication layer * @param method allocation data for this method. ! * @param type allocation data for this type. */ ! AllocTypeMethodData( IProf.sID sid, AllocTypeData type, MethodData method ) { ! this( sid.objId, type, method ); //if (sid.alloc!=null) //do not test this, its an error *************** *** 78,87 **** /** ! * Returns allocation data for this class. * ! * @return allocation data for this class. */ ! public AllocTypeData getClazz() { ! return clazz; } --- 79,88 ---- /** ! * Returns allocation data for this type. * ! * @return allocation data for this type. */ ! public AllocTypeData getType() { ! return type; } *************** *** 96,103 **** /** ! * Returns map of traces of the method in which instances of this class were * allocated. * ! * @return mapping between {@link AllocClassTraceData} objects and trace IDs. */ public Map getTraces() { --- 97,104 ---- /** ! * Returns map of traces of the method in which instances of this type (class or array of classes) were * allocated. * ! * @return mapping between {@link AllocTypeTraceData} objects and trace IDs. */ public Map getTraces() { *************** *** 106,112 **** /** ! * Adds trace of the method in which instances of this class were allocated. * ! * @param trace trace of the method in which instances of this class were * allocated. */ --- 107,113 ---- /** ! * Adds trace of the method in which instances of this type were allocated. * ! * @param trace trace of the method in which instances of this type (class or array of classes) were * allocated. */ *************** *** 117,125 **** /** * Returns trace (with given ID) of the method in which instances of this ! * class were allocated. * * @param ID ID of the trace. * @return trace (with given ID) of the method in which instances of this ! * class were allocated or <code>null</code> if such trace does not exist. */ public AllocTypeTraceData getTrace(int ID) { --- 118,126 ---- /** * Returns trace (with given ID) of the method in which instances of this ! * type (class or array of classes) were allocated. * * @param ID ID of the trace. * @return trace (with given ID) of the method in which instances of this ! * type were allocated or <code>null</code> if such trace does not exist. */ public AllocTypeTraceData getTrace(int ID) { *************** *** 128,135 **** /** ! * Returns map of threads where the method was called and instances of this * class allocated. * ! * @return mapping of {@link AllocThreadClassMethodData} objects and thread IDs. */ public Map getThreads() { --- 129,136 ---- /** ! * Returns map of threads where the method was called and type (class or array of classes) of this * class allocated. * ! * @return mapping of {@link AllocThreadTypeMethodData} objects and thread IDs. */ public Map getThreads() { *************** *** 138,146 **** /** ! * Adds thread where the method was called and instances of this class * allocated. * * @param thread thread where the method was called and instances of this ! * class allocated. */ void addThread(AllocThreadTypeMethodData thread) { --- 139,147 ---- /** ! * Adds thread where the method was called and instances of this type (class or array of classes) * allocated. * * @param thread thread where the method was called and instances of this ! * type allocated. */ void addThread(AllocThreadTypeMethodData thread) { *************** *** 150,158 **** /** * Returns thread (with given ID) where the method was called and instances ! * of this class allocated. * * @param ID ID of the thread. * @return thread (with given ID) where the method was called and instances ! * of this class allocated or <code>null</code> if such thread does not exist. */ public AllocThreadTypeMethodData getThread(int ID) { --- 151,159 ---- /** * Returns thread (with given ID) where the method was called and instances ! * of this type (class or array of classes) allocated. * * @param ID ID of the thread. * @return thread (with given ID) where the method was called and instances ! * of this type allocated or <code>null</code> if such thread does not exist. */ public AllocThreadTypeMethodData getThread(int ID) { *************** *** 164,167 **** --- 165,171 ---- /* * $Log$ + * Revision 1.2 2002/03/01 11:40:12 vachis + * doc changes + * * Revision 1.1 2002/02/15 22:37:30 vachis * code refactorization Class..Data renamed to Type..Data Index: AllocTypeTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeTraceData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** AllocTypeTraceData.java 15 Feb 2002 22:37:30 -0000 1.1 --- AllocTypeTraceData.java 1 Mar 2002 11:40:12 -0000 1.2 *************** *** 30,55 **** * @author Jan Stola */ ! public class AllocTypeTraceData extends AllocAbstractStatThreadClassData { ! /** Allocation data for this class and method. */ ! private AllocTypeMethodData classMethod; /** Allocation data for this trace. */ private AllocTraceData trace; /** ! * Map of threads where instances of this class were allocated in given trace. ! * Mapping of {@link AllocThreadClassTraceData} objects and thread IDs. */ private Map threads; /** ! * Creates new AllocClassTraceData. * * @param ID unique ID of this object. ! * @param classMethod allocation data for this class and method. * @param trace allocation data for this trace. */ ! AllocTypeTraceData(int ID, AllocTypeMethodData classMethod, AllocTraceData trace) { super(ID); ! this.classMethod=classMethod; this.trace=trace; threads=new HashMap(); --- 30,55 ---- * @author Jan Stola */ ! public class AllocTypeTraceData extends AllocAbstractStatThreadTypeData { ! /** Allocation data for this type and method. */ ! private AllocTypeMethodData typeMethod; /** Allocation data for this trace. */ private AllocTraceData trace; /** ! * Map of threads where instances of this type (class or array of classes) were allocated in given trace. ! * Mapping of {@link AllocThreadTypeTraceData} objects and thread IDs. */ private Map threads; /** ! * Creates new AllocTypeTraceData. * * @param ID unique ID of this object. ! * @param typeMethod allocation data for this type and method. * @param trace allocation data for this trace. */ ! AllocTypeTraceData(int ID, AllocTypeMethodData typeMethod, AllocTraceData trace) { super(ID); ! this.typeMethod=typeMethod; this.trace=trace; threads=new HashMap(); *************** *** 57,64 **** /** ! * 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. */ AllocTypeTraceData( IProf.sID sid, AllocTypeMethodData classMethod, --- 57,64 ---- /** ! * Creates new AllocTypeTraceData. * @param sid data returned by communication layer * @param trace allocation data for this trace. ! * @param typeMethod allocation data for this type and method. */ AllocTypeTraceData( IProf.sID sid, AllocTypeMethodData classMethod, *************** *** 71,80 **** /** ! * Returns allocation data for this class and method. * ! * @return allocation data for this class and method. */ ! public AllocTypeMethodData getClassMethod() { ! return classMethod; } --- 71,80 ---- /** ! * Returns allocation data for this type (class or array of classes) and method. * ! * @return allocation data for this type and method. */ ! public AllocTypeMethodData getTypeMethod() { ! return typeMethod; } *************** *** 89,96 **** /** ! * Returns map of threads where instances of this class were allocated * in given trace. * ! * @return mapping of {@link AllocThreadClassTraceData} objects and thread IDs. */ public Map getThreads() { --- 89,96 ---- /** ! * Returns map of threads where instances of this type (class or array of classes) * in given trace. * ! * @return mapping of {@link AllocThreadTypeTraceData} objects and thread IDs. */ public Map getThreads() { *************** *** 99,105 **** /** ! * Adds thread where instances of this class were allocated in given trace. * ! * @param thread thread where instances of this class were allocated * in given trace. */ --- 99,105 ---- /** ! * Adds thread where instances of this type (class or array of classes) were allocated in given trace. * ! * @param thread thread where instances of this type were allocated * in given trace. */ *************** *** 109,117 **** /** ! * Returns thread (with given ID) where instances of this class were * allocated in given trace. * * @param ID ID of the thread. ! * @return thread (with given ID) where instances of this class were * allocated in given trace or <code>null</code> if such thread does * not exist. --- 109,117 ---- /** ! * Returns thread (with given ID) where instances of this type (class or array of classes) were * allocated in given trace. * * @param ID ID of the thread. ! * @return thread (with given ID) where instances of this type were * allocated in given trace or <code>null</code> if such thread does * not exist. *************** *** 125,128 **** --- 125,131 ---- /* * $Log$ + * Revision 1.2 2002/03/01 11:40:12 vachis + * doc changes + * * Revision 1.1 2002/02/15 22:37:30 vachis * code refactorization Class..Data renamed to Type..Data |