Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/commun
In directory usw-pr-cvs1:/tmp/cvs-serv4350/net/sourceforge/javaprofiler/jpiimpl/commun
Modified Files:
IProf.java
Log Message:
new features, thread's start/finish time
Index: IProf.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/commun/IProf.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** IProf.java 15 Apr 2002 21:01:05 -0000 1.18
--- IProf.java 25 May 2002 00:03:23 -0000 1.19
***************
*** 55,59 ****
/// version number of communication interface
! private static final int INTERFACE_VERSION_NUMBER = 1;
/** Default constructor. Sockets are used
--- 55,59 ----
/// version number of communication interface
! private static final int INTERFACE_VERSION_NUMBER = 2;
/** Default constructor. Sockets are used
***************
*** 533,536 ****
--- 533,542 ----
/// parent thread
public int parentObjId;
+
+ /// time when thread has started
+ public Date startTime;
+
+ /// time when thread has finished (null if thread is still active)
+ public Date endTime;
};
***************
*** 795,799 ****
th.parentObjId = b.getInt( offset);
offset += 4;
!
return offset;
}
--- 801,813 ----
th.parentObjId = b.getInt( offset);
offset += 4;
!
! th.startTime = new Date( b.getLong( offset));
! offset += 8;
!
! long et = b.getLong( offset);
! offset += 8;
!
! if( et != 0) th.endTime = new Date( et);
!
return offset;
}
|