From: Pavel V. <va...@us...> - 2002-05-14 21:32:16
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data In directory usw-pr-cvs1:/tmp/cvs-serv8480 Modified Files: AllocThreadMethodData.java AllocThreadTraceData.java AllocTraceData.java AllocTypeMethodData.java AllocTypeThreadData.java AllocTypeThreadMethodData.java AllocTypeTraceData.java Log Message: "cross" methods Index: AllocThreadMethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadMethodData.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** AllocThreadMethodData.java 8 May 2002 08:08:57 -0000 1.15 --- AllocThreadMethodData.java 14 May 2002 21:32:12 -0000 1.16 *************** *** 83,87 **** void addType(AllocTypeThreadMethodData allocType) { allocTypeThreadMethods.add(allocType); - //pending MAP } --- 83,86 ---- *************** *** 93,97 **** void addTrace(AllocThreadTraceData trace) { allocThreadTraces.add(trace); - //pending MAP } --- 92,95 ---- *************** *** 135,140 **** */ public AllocThreadTraceRef getAllocThreadTrace(AllocTraceRef peer) { return null; - //PENDING } --- 133,145 ---- */ public AllocThreadTraceRef getAllocThreadTrace(AllocTraceRef peer) { + ListIterator itr = getAllocThreadTraces().listIterator(); + AllocThreadTraceRef obj; + + while (itr.hasNext()) { + obj = (AllocThreadTraceRef) itr.next(); + if ( obj.getAllocTrace().equals( peer ) ) + return obj; + } return null; } *************** *** 159,164 **** */ public AllocTypeThreadMethodRef getAllocTypeThreadMethod(TypeRef peer) { ! return null; ! //PENDING } --- 164,176 ---- */ public AllocTypeThreadMethodRef getAllocTypeThreadMethod(TypeRef peer) { ! ListIterator itr = getAllocTypeThreadMethods().listIterator(); ! AllocTypeThreadMethodData obj; ! ! while (itr.hasNext()) { ! obj = (AllocTypeThreadMethodData) itr.next(); ! if ( obj.getType().equals( peer ) ) ! return obj; ! } ! return null; } *************** *** 193,196 **** --- 205,211 ---- /* * $Log$ + * Revision 1.16 2002/05/14 21:32:12 vachis + * "cross" methods + * * Revision 1.15 2002/05/08 08:08:57 vachis * siblings Index: AllocThreadTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadTraceData.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** AllocThreadTraceData.java 8 May 2002 08:08:57 -0000 1.15 --- AllocThreadTraceData.java 14 May 2002 21:32:12 -0000 1.16 *************** *** 82,86 **** void addType(AllocTypeThreadTraceData allocType) { allocTypeThreadTraces.add(allocType); - //pending MAP } --- 82,85 ---- *************** *** 137,142 **** */ public AllocTypeThreadTraceRef getAllocTypeThreadTrace(TypeRef peer) { return null; - //PENDING } --- 136,148 ---- */ public AllocTypeThreadTraceRef getAllocTypeThreadTrace(TypeRef peer) { + ListIterator itr = getAllocTypeThreadTraces().listIterator(); + AllocTypeThreadTraceData obj; + + while (itr.hasNext()) { + obj = (AllocTypeThreadTraceData) itr.next(); + if ( obj.getType().equals( peer ) ) + return obj; + } return null; } *************** *** 171,174 **** --- 177,183 ---- /* * $Log$ + * Revision 1.16 2002/05/14 21:32:12 vachis + * "cross" methods + * * Revision 1.15 2002/05/08 08:08:57 vachis * siblings Index: AllocTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTraceData.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** AllocTraceData.java 13 May 2002 21:25:56 -0000 1.19 --- AllocTraceData.java 14 May 2002 21:32:12 -0000 1.20 *************** *** 86,90 **** void addType(AllocTypeTraceData allocType) { allocTypeTraces.add(allocType); - //pending MAP } --- 86,89 ---- *************** *** 96,100 **** void addThread(AllocThreadTraceData thread) { allocThreadTraces.add(thread); - //pending MAP } --- 95,98 ---- *************** *** 149,154 **** */ public AllocThreadTraceRef getAllocThreadTrace(ThreadRef peer) { return null; - //PENDING } --- 147,159 ---- */ public AllocThreadTraceRef getAllocThreadTrace(ThreadRef peer) { + ListIterator itr = getAllocThreadTraces().listIterator(); + AllocThreadTraceRef obj; + + while (itr.hasNext()) { + obj = (AllocThreadTraceRef) itr.next(); + if ( obj.getThread().equals( peer ) ) + return obj; + } return null; } *************** *** 171,176 **** */ public AllocTypeTraceRef getAllocTypeTrace(TypeRef peer) { ! return null; ! //PENDING } --- 176,188 ---- */ public AllocTypeTraceRef getAllocTypeTrace(TypeRef peer) { ! ListIterator itr = getAllocTypeTraces().listIterator(); ! AllocTypeTraceRef obj; ! ! while (itr.hasNext()) { ! obj = (AllocTypeTraceRef) itr.next(); ! if ( obj.getType().equals( peer ) ) ! return obj; ! } ! return null; } *************** *** 185,192 **** public CPUTraceRef getSiblingCPU() { ListIterator itr = getMethod().getCPUTraces().listIterator(); ! CPUTraceData trace; while ( itr.hasNext() ) { ! trace = (CPUTraceData) itr.next(); if ( getFrames().equals( trace.getFrames() ) ) return trace; --- 197,204 ---- public CPUTraceRef getSiblingCPU() { ListIterator itr = getMethod().getCPUTraces().listIterator(); ! CPUTraceRef trace; while ( itr.hasNext() ) { ! trace = (CPUTraceRef) itr.next(); if ( getFrames().equals( trace.getFrames() ) ) return trace; *************** *** 202,210 **** */ public MonTraceRef getSiblingMon() { ! ListIterator itr = getMethod().getCPUTraces().listIterator(); ! MonTraceData trace; while ( itr.hasNext() ) { ! trace = (MonTraceData) itr.next(); if ( getFrames().equals( trace.getFrames() ) ) return trace; --- 214,222 ---- */ public MonTraceRef getSiblingMon() { ! ListIterator itr = getMethod().getMonTraces().listIterator(); ! MonTraceRef trace; while ( itr.hasNext() ) { ! trace = (MonTraceRef) itr.next(); if ( getFrames().equals( trace.getFrames() ) ) return trace; *************** *** 221,224 **** --- 233,239 ---- /* * $Log$ + * Revision 1.20 2002/05/14 21:32:12 vachis + * "cross" methods + * * Revision 1.19 2002/05/13 21:25:56 vachis * use virtual methods in getting of siblings Index: AllocTypeMethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeMethodData.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocTypeMethodData.java 6 May 2002 17:32:13 -0000 1.5 --- AllocTypeMethodData.java 14 May 2002 21:32:12 -0000 1.6 *************** *** 85,89 **** void addTrace(AllocTypeTraceData trace) { allocTypeTraces.add(trace); - //pending MAP } --- 85,88 ---- *************** *** 97,101 **** void addThread(AllocTypeThreadMethodData thread) { allocTypeThreadMethods.add(thread); - //pending MAP } --- 96,99 ---- *************** *** 141,146 **** */ public AllocTypeTraceRef getAllocTypeTrace(AllocTraceRef peer) { return null; - //PENDING } --- 139,151 ---- */ public AllocTypeTraceRef getAllocTypeTrace(AllocTraceRef peer) { + ListIterator itr = getAllocTypeTraces().listIterator(); + AllocTypeTraceRef obj; + + while (itr.hasNext()) { + obj = (AllocTypeTraceRef) itr.next(); + if ( obj.getAllocTrace().equals( peer ) ) + return obj; + } return null; } *************** *** 164,169 **** */ public AllocTypeThreadMethodRef getAllocTypeThreadMethod(ThreadRef peer) { return null; - //PENDING } --- 169,181 ---- */ public AllocTypeThreadMethodRef getAllocTypeThreadMethod(ThreadRef peer) { + ListIterator itr = getAllocTypeThreadMethods().listIterator(); + AllocTypeThreadMethodData obj; + + while (itr.hasNext()) { + obj = (AllocTypeThreadMethodData) itr.next(); + if ( obj.getThread().equals( peer ) ) + return obj; + } return null; } *************** *** 175,178 **** --- 187,193 ---- /* * $Log$ + * Revision 1.6 2002/05/14 21:32:12 vachis + * "cross" methods + * * Revision 1.5 2002/05/06 17:32:13 vachis * new api implemention Index: AllocTypeThreadData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeThreadData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** AllocTypeThreadData.java 6 May 2002 17:33:01 -0000 1.1 --- AllocTypeThreadData.java 14 May 2002 21:32:12 -0000 1.2 *************** *** 84,88 **** void addMethod(AllocTypeThreadMethodData method) { allocTypeThreadMethods.add(method); - //pending MAP } --- 84,87 ---- *************** *** 96,100 **** void addTrace(AllocTypeThreadTraceData trace) { allocTypeThreadTraces.add(trace); - //pending MAP } --- 95,98 ---- *************** *** 142,147 **** */ public AllocTypeThreadMethodRef getAllocTypeThreadMethod(MethodRef peer) { return null; - //PENDING } --- 140,152 ---- */ public AllocTypeThreadMethodRef getAllocTypeThreadMethod(MethodRef peer) { + ListIterator itr = getAllocTypeThreadMethods().listIterator(); + AllocTypeThreadMethodData obj; + + while (itr.hasNext()) { + obj = (AllocTypeThreadMethodData) itr.next(); + if ( obj.getMethod().equals( peer ) ) + return obj; + } return null; } *************** *** 166,171 **** */ public AllocTypeThreadTraceRef getAllocTypeThreadTrace(AllocTraceRef peer) { return null; - //PENDING } --- 171,183 ---- */ public AllocTypeThreadTraceRef getAllocTypeThreadTrace(AllocTraceRef peer) { + ListIterator itr = getAllocTypeThreadTraces().listIterator(); + AllocTypeThreadTraceData obj; + + while (itr.hasNext()) { + obj = (AllocTypeThreadTraceData) itr.next(); + if ( obj.getAllocTrace().equals( peer ) ) + return obj; + } return null; } *************** *** 177,180 **** --- 189,195 ---- /* * $Log$ + * Revision 1.2 2002/05/14 21:32:12 vachis + * "cross" methods + * * Revision 1.1 2002/05/06 17:33:01 vachis * new api implemention Index: AllocTypeThreadMethodData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeThreadMethodData.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** AllocTypeThreadMethodData.java 6 May 2002 17:33:01 -0000 1.1 --- AllocTypeThreadMethodData.java 14 May 2002 21:32:12 -0000 1.2 *************** *** 87,91 **** void addTrace(AllocTypeThreadTraceData trace) { allocTypeThreadTraces.add(trace); - //pending MAP } --- 87,90 ---- *************** *** 141,146 **** */ public AllocTypeThreadTraceRef getAllocTypeThreadTrace(AllocTraceRef peer) { return null; - //PENDING } --- 140,152 ---- */ public AllocTypeThreadTraceRef getAllocTypeThreadTrace(AllocTraceRef peer) { + ListIterator itr = getAllocTypeThreadTraces().listIterator(); + AllocTypeThreadTraceData obj; + + while (itr.hasNext()) { + obj = (AllocTypeThreadTraceData) itr.next(); + if ( obj.getAllocTrace().equals( peer ) ) + return obj; + } return null; } *************** *** 181,184 **** --- 187,193 ---- /* * $Log$ + * Revision 1.2 2002/05/14 21:32:12 vachis + * "cross" methods + * * Revision 1.1 2002/05/06 17:33:01 vachis * new api implemention Index: AllocTypeTraceData.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeTraceData.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocTypeTraceData.java 6 May 2002 17:32:13 -0000 1.5 --- AllocTypeTraceData.java 14 May 2002 21:32:12 -0000 1.6 *************** *** 81,85 **** void addThread(AllocTypeThreadTraceData thread) { allocTypeThreadTraces.add(thread); - //pending MAP } --- 81,84 ---- *************** *** 135,140 **** */ public AllocTypeThreadTraceRef getAllocTypeThreadTrace(ThreadRef peer) { return null; - //PENDING } --- 134,146 ---- */ public AllocTypeThreadTraceRef getAllocTypeThreadTrace(ThreadRef peer) { + ListIterator itr = getAllocTypeThreadTraces().listIterator(); + AllocTypeThreadTraceData obj; + + while (itr.hasNext()) { + obj = (AllocTypeThreadTraceData) itr.next(); + if ( obj.getAllocTrace().equals( peer ) ) + return obj; + } return null; } *************** *** 146,149 **** --- 152,158 ---- /* * $Log$ + * Revision 1.6 2002/05/14 21:32:12 vachis + * "cross" methods + * * Revision 1.5 2002/05/06 17:32:13 vachis * new api implemention |