From: Marek P. <ma...@us...> - 2002-07-17 22:05:58
|
Update of /cvsroot/javaprofiler/library/src/cpu In directory usw-pr-cvs1:/tmp/cvs-serv17399/src/cpu Modified Files: sampling.cpp sampling.h Log Message: fixes date represented in milliseconds since 1.1.1970 gc start/end times, thread start/end times Index: sampling.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/cpu/sampling.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** sampling.cpp 15 Apr 2002 21:04:17 -0000 1.14 --- sampling.cpp 17 Jul 2002 22:05:56 -0000 1.15 *************** *** 90,98 **** Prof* _prof = &Prof::prof(); ! unsigned long waitTime = 1; ! unsigned long avgSampleTime = 1; ! unsigned long lastSampleTime; ! unsigned long startTime; ! unsigned long endTime; #ifdef _DEBUG --- 90,98 ---- Prof* _prof = &Prof::prof(); ! jlong waitTime = 1; ! jlong avgSampleTime = 1; ! jlong lastSampleTime; ! jlong startTime; ! jlong endTime; #ifdef _DEBUG *************** *** 153,157 **** lastSampleTime = endTime - startTime; ! avgSampleTime = (int)(.9 * avgSampleTime + .1 * lastSampleTime); if (avgSampleTime == 0) avgSampleTime = 1; --- 153,157 ---- lastSampleTime = endTime - startTime; ! avgSampleTime = (jlong)(.9 * avgSampleTime + .1 * lastSampleTime); if (avgSampleTime == 0) avgSampleTime = 1; *************** *** 162,166 **** if (_cmd != CMD_TURN_ON) continue; ! Delay::delay(waitTime); } } --- 162,166 ---- if (_cmd != CMD_TURN_ON) continue; ! Delay::delay( waitTime); } } Index: sampling.h =================================================================== RCS file: /cvsroot/javaprofiler/library/src/cpu/sampling.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** sampling.h 18 Feb 2002 20:17:59 -0000 1.10 --- sampling.h 17 Jul 2002 22:05:56 -0000 1.11 *************** *** 147,152 **** public: ! unsigned long start; ! unsigned long finish; unsigned long samples; #endif // _DEBUG --- 147,152 ---- public: ! jlong start; ! jlong finish; unsigned long samples; #endif // _DEBUG |