From: Marek P. <ma...@us...> - 2002-05-25 00:05:10
|
Update of /cvsroot/javaprofiler/library/src/shared In directory usw-pr-cvs1:/tmp/cvs-serv4699/src/shared Modified Files: thread.cpp thread.h Log Message: thread's start/finish time added Index: thread.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/shared/thread.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** thread.cpp 15 Apr 2002 21:04:18 -0000 1.11 --- thread.cpp 25 May 2002 00:05:06 -0000 1.12 *************** *** 53,56 **** --- 53,59 ---- else b += getProfID(); + b += (jlong)startTime; + b += (jlong)endTime; + return b; } Index: thread.h =================================================================== RCS file: /cvsroot/javaprofiler/library/src/shared/thread.h,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -r1.24 -r1.25 *** thread.h 31 Jan 2002 12:31:01 -0000 1.24 --- thread.h 25 May 2002 00:05:06 -0000 1.25 *************** *** 95,98 **** --- 95,104 ---- int active; + /// time when thread has started + time_t startTime; + + /// time when thread has finished (or 0 if still active) + time_t endTime; + /// associated AllocThreadObjects List<AllocThreadObject,LI1> allocThreadObjects; *************** *** 160,163 **** --- 166,171 ---- threadEnvId( NULL), active( 1), + startTime( 0), + endTime( 0), monitorEnter(0), monitorEnterObject(0), |