From: Marek P. <ma...@us...> - 2002-07-17 22:05:59
|
Update of /cvsroot/javaprofiler/library/src/setup In directory usw-pr-cvs1:/tmp/cvs-serv17399/src/setup Modified Files: setup.cpp Log Message: fixes date represented in milliseconds since 1.1.1970 gc start/end times, thread start/end times Index: setup.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/setup/setup.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** setup.cpp 17 Jul 2002 18:40:36 -0000 1.13 --- setup.cpp 17 Jul 2002 22:05:56 -0000 1.14 *************** *** 61,86 **** _verbose = 1; ! if( options) processOptions( options); } void Setup::processOptions( const char* options) { - if( !options) return; - const char* p = options; const char* end; ! while( end = strchr( options, ',')) { ! int len = end-options; ! if( !memcmp( options, "verbose=on", len)) _verbose = 1; ! else if( !memcmp( options, "verbose=off", len)) _verbose = 0; ! options = end+1; ! } ! if( !strcmp( options, "verbose=on")) _verbose = 1; ! else if( !strcmp( options, "verbose=off")) _verbose = 0; if( _verbose) { --- 61,87 ---- _verbose = 1; ! processOptions( options); } void Setup::processOptions( const char* options) { const char* p = options; const char* end; ! if( options) { ! while( end = strchr( options, ',')) { ! int len = end-options; ! if( !memcmp( options, "verbose=on", len)) _verbose = 1; ! else if( !memcmp( options, "verbose=off", len)) _verbose = 0; ! ! options = end+1; ! } ! if( !strcmp( options, "verbose=on")) _verbose = 1; ! else if( !strcmp( options, "verbose=off")) _verbose = 0; ! } if( _verbose) { *************** *** 101,130 **** options = p; ! while( end = strchr( options, ',')) { ! int len = end-options; ! if( (len > 0) && (len < 100)) { ! char option[100]; ! memcpy( option, options, len); ! option[len] = '\0'; ! processOption( option); ! } ! options = end+1; ! } ! int len = strlen( options); ! if( (len > 0) && (len < 100)) { ! char option[100]; ! strcpy( option, options); ! processOption( option); } --- 102,134 ---- options = p; ! if( options) { ! while( end = strchr( options, ',')) { ! int len = end-options; ! if( (len > 0) && (len < 100)) { ! char option[100]; ! memcpy( option, options, len); ! option[len] = '\0'; ! processOption( option); ! } ! ! options = end+1; ! } ! int len = strlen( options); ! if( (len > 0) && (len < 100)) { ! char option[100]; ! strcpy( option, options); ! processOption( option); ! } } *************** *** 133,137 **** cout << endl << "sumarizing..." << endl; ! if( _verbose) printSumarize(); cout << endl << "profiling..." << endl; --- 137,141 ---- cout << endl << "sumarizing..." << endl; ! printSumarize(); cout << endl << "profiling..." << endl; |