From: Marek P. <ma...@us...> - 2002-04-16 12:41:38
|
Update of /cvsroot/javaprofiler/library/src/prof In directory usw-pr-cvs1:/tmp/cvs-serv22574/src/prof Modified Files: prof_get.cpp prof_jvm.cpp Log Message: win32 fixes Index: prof_get.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/prof/prof_get.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** prof_get.cpp 15 Apr 2002 21:04:18 -0000 1.11 --- prof_get.cpp 16 Apr 2002 12:41:35 -0000 1.12 *************** *** 545,549 **** --- 545,553 ---- char buf[50]; + #ifndef WIN32 snprintf( buf, sizeof( buf), "unknown_%d", num++); + #else + _snprintf( buf, sizeof( buf), "unknown_%d", num++); + #endif #ifdef EXPERIMENTAL *************** *** 596,600 **** --- 600,608 ---- char buf[50]; + #ifndef WIN32 snprintf( buf, sizeof( buf), "Unknown_%d", num++); + #else + _snprintf( buf, sizeof( buf), "Unknown_%d", num++); + #endif JVMPI_Event event; Index: prof_jvm.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/prof/prof_jvm.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -r1.28 -r1.29 *** prof_jvm.cpp 8 Apr 2002 23:30:01 -0000 1.28 --- prof_jvm.cpp 16 Apr 2002 12:41:35 -0000 1.29 *************** *** 217,222 **** cout << "AllocObject - ID = " << o->getProfID() << " (" << o << ")" << endl; ! cout << "numInstancesTotal = " << o->allocNumInstancesTotal << endl; ! cout << "numInstancesLive = " << o->allocNumInstancesLive << endl; o->objectMethods.forEach( printAllObjectMethods, NULL); cout << endl; --- 217,222 ---- cout << "AllocObject - ID = " << o->getProfID() << " (" << o << ")" << endl; ! cout << "numInstancesTotal = " << (int)o->allocNumInstancesTotal << endl; ! cout << "numInstancesLive = " << (int)o->allocNumInstancesLive << endl; o->objectMethods.forEach( printAllObjectMethods, NULL); cout << endl; |