From: Pavel V. <va...@us...> - 2002-05-14 21:33:48
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data In directory usw-pr-cvs1:/tmp/cvs-serv9020 Modified Files: SnapshotImpl.java Log Message: lists of traces Index: SnapshotImpl.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/SnapshotImpl.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -r1.21 -r1.22 *** SnapshotImpl.java 7 May 2002 21:11:38 -0000 1.21 --- SnapshotImpl.java 14 May 2002 21:33:46 -0000 1.22 *************** *** 49,52 **** --- 49,56 ---- private final List arenas = new ArrayList(); private final List gcs = new ArrayList(); + private final List allocTraces = new ArrayList(); + private final List cpuTraces = new ArrayList(); + private final List monTraces = new ArrayList(); + // unmodifiable variants of lists *************** *** 59,62 **** --- 63,69 ---- private final List roArenas = Collections.unmodifiableList( arenas ); private final List roGcs = Collections.unmodifiableList( gcs ); + private final List roAllocTraces = Collections.unmodifiableList( allocTraces ); + private final List roCpuTraces = Collections.unmodifiableList( cpuTraces ); + private final List roMonTraces = Collections.unmodifiableList( monTraces ); private Configuration conf; *************** *** 303,307 **** /**Return unmodifiable list of objects with information about arenas. * ! *@return unmodifiable list of arenas. */ public List getArenas() { --- 310,314 ---- /**Return unmodifiable list of objects with information about arenas. * ! *@return unmodifiable list <code>List</code> of {@link ArenaRef} objects. */ public List getArenas() { *************** *** 309,315 **** } ! /**Return list of objects with information about arenas. * ! *@return list of arenas. */ public List getMethods() { --- 316,322 ---- } ! /**Return unmodifiable list of objects with information about methods. * ! *@return unmodifiable <code>List</code> of {@link MethodRef} objects. */ public List getMethods() { *************** *** 317,335 **** } ! //is it usefull? ! public List getMonTraces() { ! return null; ! //PENDING } public List getCPUTraces() { ! return null; ! //PENDING } public List getAllocTraces() { ! return null; ! //PENDING } --- 324,352 ---- } ! /**Return unmodifiable list of objects with information about traces with ! * monitors data. ! * ! *@return unmodifiable <code>List</code> of {@link MonTraceRef} objects. ! */ public List getMonTraces() { ! return roMonTraces; } + /**Return unmodifiable list of objects with information about traces with + * CPU data. + * + *@return unmodifiable <code>List</code> of {@link CPUTraceRef} objects. + */ public List getCPUTraces() { ! return roCpuTraces; } + /**Return unmodifiable list of objects with information about traces with + * allocations data. + * + *@return unmodifiable <code>List</code> of {@link AllocTraceRef} objects. + */ public List getAllocTraces() { ! return roAllocTraces; } *************** *** 405,409 **** //extract( methods, null, IProf.CPU_METHOD_TRACES, // CPUTraces_MinVal, iprof ); ! extract( null, null, IProf.CPU_TRACES, conf.CPUTraces_MinVal, iprof ); } --- 422,426 ---- //extract( methods, null, IProf.CPU_METHOD_TRACES, // CPUTraces_MinVal, iprof ); ! extract( null, cpuTraces, IProf.CPU_TRACES, conf.CPUTraces_MinVal, iprof ); } *************** *** 442,446 **** //extract( methods, null, IProf.ALLOC_METHOD_TRACES, // AllocTraces_MinVal, iprof ); ! extract( null, null, IProf.ALLOC_TRACES, conf.AllocTraces_MinVal, iprof ); if ( conf.withTypes ) { --- 459,463 ---- //extract( methods, null, IProf.ALLOC_METHOD_TRACES, // AllocTraces_MinVal, iprof ); ! extract( null, allocTraces, IProf.ALLOC_TRACES, conf.AllocTraces_MinVal, iprof ); if ( conf.withTypes ) { *************** *** 483,487 **** //extract( methods, null, IProf.MON_METHOD_TRACES, // IProf.NO_OPTIONAL_ARG, iprof ); ! extract( null, null, IProf.MON_TRACES, IProf.NO_OPTIONAL_ARG, iprof ); } --- 500,504 ---- //extract( methods, null, IProf.MON_METHOD_TRACES, // IProf.NO_OPTIONAL_ARG, iprof ); ! extract( null, monTraces, IProf.MON_TRACES, IProf.NO_OPTIONAL_ARG, iprof ); } *************** *** 700,705 **** ((MethodData) libIDs.get( new Integer(trcInfo.frames[i].methodObjId ))), ! (i==0) ? null : ((FrameData) frames.get(i-1)) ! )); return frames; }; --- 717,721 ---- ((MethodData) libIDs.get( new Integer(trcInfo.frames[i].methodObjId ))), ! (i==0) ? null : ((FrameData) frames.get(i-1)) )); return frames; }; *************** *** 1103,1111 **** //FIXME: ! //to fill list of traces ! ! //GCRef, ArenaRef, CallTree, //TODO: // write exception handling code properly // filters --- 1119,1126 ---- //FIXME: ! //GCRef, ArenaRef //TODO: + //? shloud I test a duplicity in lists? // write exception handling code properly // filters *************** *** 1116,1119 **** --- 1131,1137 ---- /* * $Log$ + * Revision 1.22 2002/05/14 21:33:46 vachis + * lists of traces + * * Revision 1.21 2002/05/07 21:11:38 vachis * fix creation of fields, frames |