Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data
In directory usw-pr-cvs1:/tmp/cvs-serv21133
Modified Files:
AllocThreadMethodData.java AllocThreadTraceData.java
AllocTraceData.java AllocTypeMethodData.java
AllocTypeThreadData.java AllocTypeThreadMethodData.java
AllocTypeThreadTraceData.java AllocTypeTraceData.java
CPUThreadMethodData.java CPUThreadTraceData.java
CPUTraceData.java FieldData.java FrameData.java GCRunData.java
MethodData.java MonThreadMethodData.java
MonThreadTraceData.java MonTraceData.java ThreadData.java
ThreadGroupData.java
Log Message:
added constructor
it's analogy of copy constructor
Index: AllocThreadMethodData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadMethodData.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** AllocThreadMethodData.java 24 Jul 2002 22:29:21 -0000 1.19
--- AllocThreadMethodData.java 6 Sep 2002 18:06:00 -0000 1.20
***************
*** 74,77 ****
--- 74,90 ----
setStat(sid.alloc);
}
+
+ /**
+ * Creates new AllocThreadMethodData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param thread allocation data for this thread.
+ * @param method allocation data for this method.
+ */
+ AllocThreadMethodData( AllocThreadMethodData source, ThreadData thread, MethodData method ) {
+ this( source.getID(), thread, method );
+
+ setStat( source );
+ }
/**
***************
*** 219,222 ****
--- 232,239 ----
/*
* $Log$
+ * Revision 1.20 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.19 2002/07/24 22:29:21 vachis
* implements new interfaces for getting roots and info
Index: AllocThreadTraceData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocThreadTraceData.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** AllocThreadTraceData.java 24 Jul 2002 22:29:21 -0000 1.19
--- AllocThreadTraceData.java 6 Sep 2002 18:06:00 -0000 1.20
***************
*** 74,77 ****
--- 74,90 ----
/**
+ * Creates new AllocThreadTraceData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param threadMethod allocation data for this thread and method.
+ */
+ AllocThreadTraceData( AllocThreadTraceData source, AllocThreadMethodData threadMethod,
+ AllocTraceData trace ) {
+ this( source.getID(), threadMethod, trace );
+
+ setStat( source );
+ }
+
+ /**
* Adds type that was allocated in this given trace
* and thread. type can be instance of class or its array.
***************
*** 190,193 ****
--- 203,210 ----
/*
* $Log$
+ * Revision 1.20 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.19 2002/07/24 22:29:21 vachis
* implements new interfaces for getting roots and info
Index: AllocTraceData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTraceData.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** AllocTraceData.java 31 Aug 2002 08:37:39 -0000 1.24
--- AllocTraceData.java 6 Sep 2002 18:06:00 -0000 1.25
***************
*** 63,67 ****
/**
! * Creates new AllocTraceData.
*
* @param sid data returned by communication layer
--- 63,67 ----
/**
! * Creates new AllocTraceData, anlogy of copy constructor.
*
* @param sid data returned by communication layer
***************
*** 78,81 ****
--- 78,96 ----
}
+ /**
+ * Creates new AllocTraceData.
+ *
+ * @param source copy data from this source
+ * @param method allocation data for this method.
+ * @param frames frames that make up this trace. It should be
+ * <code>List</code> of {@link FrameData} objects. Constructor takes this list,
+ * it doesn't make a copy of the list.
+ */
+ AllocTraceData( AllocTraceData source, MethodData method, List frames ) {
+ this( source.getID(), method, frames );
+
+ setStat( source );
+ }
+
/**
* Adds type that was allocated in this trace. Type
***************
*** 249,252 ****
--- 264,271 ----
/*
* $Log$
+ * Revision 1.25 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.24 2002/08/31 08:37:39 petrul
* fixed getMethod()
Index: AllocTypeMethodData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeMethodData.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** AllocTypeMethodData.java 24 Jul 2002 22:29:22 -0000 1.9
--- AllocTypeMethodData.java 6 Sep 2002 18:06:00 -0000 1.10
***************
*** 76,79 ****
--- 76,92 ----
setStat(sid.alloc);
}
+
+ /**
+ * Creates new AllocTypeMethodData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param method allocation data for this method.
+ * @param type allocation data for this type.
+ */
+ AllocTypeMethodData( AllocTypeMethodData source, TypeData type, MethodData method ) {
+ this( source.getID(), type, method );
+
+ this.setStat( source );
+ }
/**
***************
*** 203,206 ****
--- 216,223 ----
/*
* $Log$
+ * Revision 1.10 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.9 2002/07/24 22:29:22 vachis
* implements new interfaces for getting roots and info
Index: AllocTypeThreadData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeThreadData.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** AllocTypeThreadData.java 12 Jun 2002 22:00:29 -0000 1.4
--- AllocTypeThreadData.java 6 Sep 2002 18:06:00 -0000 1.5
***************
*** 74,77 ****
--- 74,90 ----
setStat(sid.alloc);
}
+
+ /**
+ * Creates new AllocTypeThreadData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param thread allocation data for this thread.
+ * @param type allocation data for this type.
+ */
+ AllocTypeThreadData(AllocTypeThreadData source, ThreadData thread, TypeData type) {
+ this( source.getID() , thread, type );
+
+ setStat( source );
+ }
/**
***************
*** 196,199 ****
--- 209,216 ----
/*
* $Log$
+ * Revision 1.5 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.4 2002/06/12 22:00:29 vachis
* add/removeChildListeners - param String changed to int
Index: AllocTypeThreadMethodData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeThreadMethodData.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** AllocTypeThreadMethodData.java 24 Jul 2002 22:29:22 -0000 1.5
--- AllocTypeThreadMethodData.java 6 Sep 2002 18:06:00 -0000 1.6
***************
*** 77,80 ****
--- 77,99 ----
setStat(sid.alloc);
}
+
+ /**
+ * Creates new AllocTypeThreadMethodData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @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.
+ */
+ AllocTypeThreadMethodData(AllocTypeThreadMethodData source,
+ AllocTypeThreadData threadType,
+ AllocTypeMethodData typeMethod,
+ AllocThreadMethodData threadMethod)
+ {
+ this( source.getID(), threadType, typeMethod, threadMethod );
+
+ setStat( source );
+ }
+
/**
***************
*** 201,204 ****
--- 220,227 ----
/*
* $Log$
+ * Revision 1.6 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.5 2002/07/24 22:29:22 vachis
* implements new interfaces for getting roots and info
Index: AllocTypeThreadTraceData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeThreadTraceData.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** AllocTypeThreadTraceData.java 24 Jul 2002 22:29:22 -0000 1.3
--- AllocTypeThreadTraceData.java 6 Sep 2002 18:06:00 -0000 1.4
***************
*** 72,75 ****
--- 72,93 ----
}
+ /**
+ * Creates new AllocTypeThreadTraceData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @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.
+ */
+ AllocTypeThreadTraceData(AllocTypeThreadTraceData source,
+ AllocTypeTraceData classTrace,
+ AllocTypeThreadMethodData threadClassMethod,
+ AllocThreadTraceData threadTrace)
+ {
+ this( source.getID(), classTrace, threadClassMethod, threadTrace );
+
+ setStat( source );
+ }
+
// ---------- return parents
***************
*** 155,158 ****
--- 173,180 ----
/*
* $Log$
+ * Revision 1.4 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.3 2002/07/24 22:29:22 vachis
* implements new interfaces for getting roots and info
Index: AllocTypeTraceData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/AllocTypeTraceData.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** AllocTypeTraceData.java 24 Jul 2002 22:29:22 -0000 1.9
--- AllocTypeTraceData.java 6 Sep 2002 18:06:00 -0000 1.10
***************
*** 74,77 ****
--- 74,91 ----
/**
+ * Creates new AllocTypeTraceData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param trace allocation data for this trace.
+ * @param typeMethod allocation data for this type and method.
+ */
+ AllocTypeTraceData( AllocTypeTraceData source, AllocTypeMethodData classMethod,
+ AllocTraceData trace) {
+ this( source.getID(), classMethod, trace );
+
+ setStat( source );
+ }
+
+ /**
* Adds thread where instances of this type (class or array of classes) were allocated in given trace.
*
***************
*** 169,172 ****
--- 183,190 ----
/*
* $Log$
+ * Revision 1.10 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.9 2002/07/24 22:29:22 vachis
* implements new interfaces for getting roots and info
Index: CPUThreadMethodData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CPUThreadMethodData.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** CPUThreadMethodData.java 24 Jul 2002 22:29:22 -0000 1.14
--- CPUThreadMethodData.java 6 Sep 2002 18:06:00 -0000 1.15
***************
*** 73,76 ****
--- 73,92 ----
/**
+ * Creates new CPUThreadMethodData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param thread profiling data for this thread.
+ * @param method profiling data for this method.
+ */
+ CPUThreadMethodData( CPUThreadMethodData source,
+ ThreadData thread,
+ MethodData method )
+ {
+ this( source.getID(), thread, method );
+
+ setStat( source );
+ }
+
+ /**
* Adds trace of this method.
*
***************
*** 174,177 ****
--- 190,197 ----
/*
* $Log$
+ * Revision 1.15 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.14 2002/07/24 22:29:22 vachis
* implements new interfaces for getting roots and info
Index: CPUThreadTraceData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CPUThreadTraceData.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** CPUThreadTraceData.java 24 Jul 2002 22:29:22 -0000 1.10
--- CPUThreadTraceData.java 6 Sep 2002 18:06:00 -0000 1.11
***************
*** 65,68 ****
--- 65,84 ----
}
+ /**
+ * Creates new CPUThreadTraceData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param threadMethod profiling data for this thread and method.
+ * @param trace profiling data for this trace.
+ */
+ CPUThreadTraceData( CPUThreadTraceData source,
+ CPUThreadMethodData threadMethod,
+ CPUTraceData trace )
+ {
+ this( source.getID(), threadMethod, trace );
+
+ setStat( source );
+ }
+
// ---------- return parents, roots
***************
*** 133,136 ****
--- 149,156 ----
/*
* $Log$
+ * Revision 1.11 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.10 2002/07/24 22:29:22 vachis
* implements new interfaces for getting roots and info
Index: CPUTraceData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CPUTraceData.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** CPUTraceData.java 31 Aug 2002 08:37:39 -0000 1.18
--- CPUTraceData.java 6 Sep 2002 18:06:00 -0000 1.19
***************
*** 77,80 ****
--- 77,96 ----
}
+ /**
+ * Creates new CPUTraceData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param method profiling data for this method.
+ * @param frames frames that make up this trace. It should be
+ * <code>List</code> of {@link FrameData} objects.
+ */
+ CPUTraceData( CPUTraceData source,
+ MethodData method, List frames )
+ {
+ this( source.getID(), method, frames );
+
+ setStat( source );
+ }
+
/**
* Adds thread in which this trace appeared.
***************
*** 207,210 ****
--- 223,230 ----
/*
* $Log$
+ * Revision 1.19 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.18 2002/08/31 08:37:39 petrul
* fixed getMethod()
Index: FieldData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/FieldData.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** FieldData.java 30 May 2002 22:38:17 -0000 1.2
--- FieldData.java 6 Sep 2002 18:06:00 -0000 1.3
***************
*** 59,62 ****
--- 59,76 ----
* Creates new ClassFieldData
*
+ * @param source copy data from this source
+ */
+ FieldData(FieldData source, ClassData parentClass) {
+ this( source.getID(),
+ source.getName(),
+ source.getSignature(),
+ parentClass,
+ source.isStatic()
+ );
+ }
+
+ /**
+ * Creates new ClassFieldData
+ *
* @param sid data returned by communication layer .
*/
***************
*** 113,116 ****
--- 127,134 ----
/*
* $Log$
+ * Revision 1.3 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.2 2002/05/30 22:38:17 vachis
* changed interface to jpi
Index: FrameData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/FrameData.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** FrameData.java 23 Aug 2002 18:08:36 -0000 1.4
--- FrameData.java 6 Sep 2002 18:06:00 -0000 1.5
***************
*** 49,52 ****
--- 49,62 ----
}
+ /**
+ * Creates new FrameData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param method method of this frame.
+ */
+ FrameData(FrameData source, MethodData method, FrameData callerFrame) {
+ this( source.getLineNo(), method, callerFrame );
+ }
+
// -------------- info getter methods
***************
*** 124,127 ****
--- 134,141 ----
/*
* $Log$
+ * Revision 1.5 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.4 2002/08/23 18:08:36 petrul
* equals() method less restrictive
Index: GCRunData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/GCRunData.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** GCRunData.java 11 Jun 2002 06:56:03 -0000 1.1
--- GCRunData.java 6 Sep 2002 18:06:00 -0000 1.2
***************
*** 73,76 ****
--- 73,91 ----
((IProf.sGCInfo)sid.info).endTime);
}
+
+ /**
+ * Creates new GCData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ */
+ GCRunData(GCRunData source) {
+ this( source.getID(),
+ source.getUsedObjectsCount(),
+ source.getUsedSpace(),
+ source.getTotalSpace(),
+ source.getStartTime(),
+ source.getEndTime()
+ );
+ }
/**
***************
*** 123,126 ****
--- 138,145 ----
/*
* $Log$
+ * Revision 1.2 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.1 2002/06/11 06:56:03 vachis
* GCData renamed
Index: MethodData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/MethodData.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** MethodData.java 20 Aug 2002 19:30:01 -0000 1.21
--- MethodData.java 6 Sep 2002 18:06:00 -0000 1.22
***************
*** 119,122 ****
--- 119,141 ----
/**
+ * Creates new MethodData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param parentClass class this method belongs to.
+ * @param virtualMachineImage VirtualMachineImage this method belongs to. The VirtualMachineImage could be live
+ * (realtime implementation) or static (snaphshot).
+ */
+ MethodData( MethodData source, ClassData parentClass,
+ VirtualMachineImageRef vmImage) {
+ this( source.getID(), source.getName(),
+ source.getSignature(), source.getStartLineNo(), source.getEndLineNo(),
+ parentClass, vmImage);
+
+ setStat( (CPUStatData) source );
+ setStat( (MonStatData) source );
+ setStat( (AllocStatData) source );
+ }
+
+ /**
* Adds trace of this method where some objects were allocated.
*
***************
*** 418,421 ****
--- 437,444 ----
/*
* $Log$
+ * Revision 1.22 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.21 2002/08/20 19:30:01 petrul
* fixed toString method
Index: MonThreadMethodData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/MonThreadMethodData.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** MonThreadMethodData.java 24 Jul 2002 22:29:22 -0000 1.11
--- MonThreadMethodData.java 6 Sep 2002 18:06:00 -0000 1.12
***************
*** 71,75 ****
//if (sid.mon!=null) //do not test this, its an error
setStat(sid.mon);
! }
/**
--- 71,91 ----
//if (sid.mon!=null) //do not test this, its an error
setStat(sid.mon);
! }
!
! /**
! * Creates new MonThreadMethodData, anlogy of copy constructor.
! *
! * @param source copy data from this source
! * @param thread profiling data for this thread.
! * @param method profiling data for this method.
! */
! MonThreadMethodData( MonThreadMethodData source,
! ThreadData thread,
! MethodData method )
! {
! this( source.getID(), thread, method );
!
! setStat( source );
! }
/**
***************
*** 175,178 ****
--- 191,198 ----
/*
* $Log$
+ * Revision 1.12 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.11 2002/07/24 22:29:22 vachis
* implements new interfaces for getting roots and info
Index: MonThreadTraceData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/MonThreadTraceData.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** MonThreadTraceData.java 24 Jul 2002 22:29:22 -0000 1.8
--- MonThreadTraceData.java 6 Sep 2002 18:06:00 -0000 1.9
***************
*** 54,58 ****
/**
! * Creates new MonThreadTraceData.
*
* @param sid data returned by communication layer
--- 54,58 ----
/**
! * Creates new MonThreadTraceData, anlogy of copy constructor.
*
* @param sid data returned by communication layer
***************
*** 67,70 ****
--- 67,86 ----
setStat(sid.mon);
}
+
+ /**
+ * Creates new MonThreadTraceData.
+ *
+ * @param source copy data from this source
+ * @param threadMethod profiling data for this thread and method.
+ * @param trace profiling data for this trace.
+ */
+ MonThreadTraceData( MonThreadTraceData source,
+ MonThreadMethodData threadMethod,
+ MonTraceData trace )
+ {
+ this( source.getID(), threadMethod, trace );
+
+ setStat( source );
+ }
// ---------- return parents, roots
***************
*** 135,138 ****
--- 151,158 ----
/*
* $Log$
+ * Revision 1.9 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.8 2002/07/24 22:29:22 vachis
* implements new interfaces for getting roots and info
Index: MonTraceData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/MonTraceData.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** MonTraceData.java 31 Aug 2002 08:37:39 -0000 1.16
--- MonTraceData.java 6 Sep 2002 18:06:00 -0000 1.17
***************
*** 75,78 ****
--- 75,90 ----
setStat(sid.mon);
}
+
+ /**
+ * Creates new MonTraceData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param method profiling data for this method.
+ */
+ MonTraceData( MonTraceData source, MethodData method, List frames ) {
+ this( source.getID(), method, frames );
+
+ setStat( source );
+ }
/**
***************
*** 209,212 ****
--- 221,228 ----
/*
* $Log$
+ * Revision 1.17 2002/09/06 18:06:00 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.16 2002/08/31 08:37:39 petrul
* fixed getMethod()
Index: ThreadData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/ThreadData.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** ThreadData.java 24 Jul 2002 22:29:22 -0000 1.24
--- ThreadData.java 6 Sep 2002 18:06:01 -0000 1.25
***************
*** 112,115 ****
--- 112,137 ----
if (sid.alloc != null)
setStat(sid.alloc);
+
+ //PENDING compute CPU, MON stat from children
+ }
+
+ /**
+ * Creates new ThreadData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ * @param group group of this thread.
+ * @param parent parent of this thread.
+ * @param virtualMachineImage VirtualMachineImage this method belongs to. The VirtualMachineImage could be live
+ * (realtime implementation) or static (snaphshot).
+ */
+ ThreadData( ThreadData source, ThreadGroupData group, ThreadData parent,
+ VirtualMachineImageRef vmImage) {
+ this( source.getID(), source.getName(), group, parent, vmImage,
+ source.getStartTime(), source.getEndTime(), source.isActive()
+ );
+
+ setStat( (CPUStatData) source );
+ setStat( (MonStatData) source );
+ setStat( (AllocStatData) source );
}
***************
*** 534,537 ****
--- 556,563 ----
/*
* $Log$
+ * Revision 1.25 2002/09/06 18:06:01 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.24 2002/07/24 22:29:22 vachis
* implements new interfaces for getting roots and info
Index: ThreadGroupData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/ThreadGroupData.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** ThreadGroupData.java 12 Jun 2002 22:00:31 -0000 1.8
--- ThreadGroupData.java 6 Sep 2002 18:06:01 -0000 1.9
***************
*** 63,66 ****
--- 63,75 ----
/**
+ * Creates new ThreadGroupData, anlogy of copy constructor.
+ *
+ * @param source copy data from this source
+ */
+ ThreadGroupData( ThreadGroupData source ) {
+ this( source.getID(), source.getName() );
+ }
+
+ /**
* Adds thread into this group.
*
***************
*** 107,110 ****
--- 116,123 ----
/*
* $Log$
+ * Revision 1.9 2002/09/06 18:06:01 vachis
+ * added constructor
+ * it's analogy of copy constructor
+ *
* Revision 1.8 2002/06/12 22:00:31 vachis
* add/removeChildListeners - param String changed to int
|