From: Marek P. <ma...@us...> - 2002-03-07 00:27:24
|
Update of /cvsroot/javaprofiler/library/src/commun2 In directory usw-pr-cvs1:/tmp/cvs-serv14504/src/commun2 Modified Files: prof_interface.cpp Log Message: 'clearFlag' parameter implementation Index: prof_interface.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/commun2/prof_interface.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** prof_interface.cpp 31 Jan 2002 12:31:00 -0000 1.17 --- prof_interface.cpp 7 Mar 2002 00:27:21 -0000 1.18 *************** *** 299,302 **** --- 299,303 ---- jint iI, // in jint oA, // in + jint cF, // in seqID& seq, // out int all) { // in *************** *** 309,314 **** case CLASSES: { ! getDataFromList( classes, seq, all, what, iI, oA); ! break; } --- 310,314 ---- case CLASSES: { ! getDataFromList( classes, seq, all, what, iI, oA, cF); break; } *************** *** 319,323 **** while( c) { ! getDataFromList( c->methods, seq, all, what, iI, oA); c = classes.next( c); --- 319,323 ---- while( c) { ! getDataFromList( c->methods, seq, all, what, iI, oA, cF); c = classes.next( c); *************** *** 335,339 **** while( m) { ! getDataFromList( m->allocTraces, seq, all, what, iI, oA); m = c->methods.next( m); } --- 335,339 ---- while( m) { ! getDataFromList( m->allocTraces, seq, all, what, iI, oA, cF); m = c->methods.next( m); } *************** *** 353,357 **** while( m) { ! getDataFromList( m->cpuTraces, seq, all, what, iI, oA); m = c->methods.next( m); } --- 353,357 ---- while( m) { ! getDataFromList( m->cpuTraces, seq, all, what, iI, oA, cF); m = c->methods.next( m); } *************** *** 371,375 **** while( m) { ! getDataFromList( m->monTraces, seq, all, what, iI, oA); m = c->methods.next( m); } --- 371,375 ---- while( m) { ! getDataFromList( m->monTraces, seq, all, what, iI, oA, cF); m = c->methods.next( m); } *************** *** 383,387 **** case OBJECT_TYPES: { ! getDataFromList( allocObjects, seq, all, what, iI, oA); break; } --- 383,387 ---- case OBJECT_TYPES: { ! getDataFromList( allocObjects, seq, all, what, iI, oA, cF); break; } *************** *** 389,393 **** case THREADS: { ! getDataFromList( threads, seq, all, what, iI, oA); break; } --- 389,393 ---- case THREADS: { ! getDataFromList( threads, seq, all, what, iI, oA, cF); break; } *************** *** 395,399 **** case GROUPS_OF_THREADS: { ! getDataFromList( groupsOfThreads, seq, all, what, iI, oA); break; } --- 395,399 ---- case GROUPS_OF_THREADS: { ! getDataFromList( groupsOfThreads, seq, all, what, iI, oA, cF); break; } *************** *** 401,405 **** case ARENAS: { ! getDataFromList( arenas, seq, all, what, iI, oA); break; } --- 401,405 ---- case ARENAS: { ! getDataFromList( arenas, seq, all, what, iI, oA, cF); break; } *************** *** 407,411 **** case GCS: { ! getDataFromList( gcStat, seq, all, what, iI, oA); break; } --- 407,411 ---- case GCS: { ! getDataFromList( gcStat, seq, all, what, iI, oA, cF); break; } *************** *** 427,433 **** Class* c = static_cast<Class*>( p); ! if( what == CLASS_FIELDS_STATICS) getDataFromList( c->statics, seq, all, what, iI, oA); ! else if( what == CLASS_FIELDS_INSTANCES) getDataFromList( c->instances, seq, all, what, iI, oA); ! else getDataFromList( c->methods, seq, all, what, iI, oA); break; --- 427,433 ---- Class* c = static_cast<Class*>( p); ! if( what == CLASS_FIELDS_STATICS) getDataFromList( c->statics, seq, all, what, iI, oA, cF); ! else if( what == CLASS_FIELDS_INSTANCES) getDataFromList( c->instances, seq, all, what, iI, oA, cF); ! else getDataFromList( c->methods, seq, all, what, iI, oA, cF); break; *************** *** 446,456 **** Method* m = static_cast<Method*>( p); ! if( what == ALLOC_METHOD_OBJECTS) getDataFromList( m->allocObjectMethods, seq, all, what, iI, oA); ! else if( what == ALLOC_METHOD_THREADS) getDataFromList( m->allocThreadMethods, seq, all, what, iI, oA); ! else if( what == ALLOC_METHOD_TRACES) getDataFromList( m->allocTraces, seq, all, what, iI, oA); ! else if( what == CPU_METHOD_THREADS) getDataFromList( m->cpuThreadMethods, seq, all, what, iI, oA); ! else if( what == CPU_METHOD_TRACES) getDataFromList( m->cpuTraces, seq, all, what, iI, oA); ! else if( what == MON_METHOD_THREADS) getDataFromList( m->monThreadMethods, seq, all, what, iI, oA); ! else getDataFromList( m->monTraces, seq, all, what, iI, oA); break; --- 446,456 ---- Method* m = static_cast<Method*>( p); ! if( what == ALLOC_METHOD_OBJECTS) getDataFromList( m->allocObjectMethods, seq, all, what, iI, oA, cF); ! else if( what == ALLOC_METHOD_THREADS) getDataFromList( m->allocThreadMethods, seq, all, what, iI, oA, cF); ! else if( what == ALLOC_METHOD_TRACES) getDataFromList( m->allocTraces, seq, all, what, iI, oA, cF); ! else if( what == CPU_METHOD_THREADS) getDataFromList( m->cpuThreadMethods, seq, all, what, iI, oA, cF); ! else if( what == CPU_METHOD_TRACES) getDataFromList( m->cpuTraces, seq, all, what, iI, oA, cF); ! else if( what == MON_METHOD_THREADS) getDataFromList( m->monThreadMethods, seq, all, what, iI, oA, cF); ! else getDataFromList( m->monTraces, seq, all, what, iI, oA, cF); break; *************** *** 464,469 **** AllocTrace* tr = static_cast<AllocTrace*>( p); ! if( what == ALLOC_TRACE_OBJECTS) getDataFromList( tr->objectTraces, seq, all, what, iI, oA); ! else getDataFromList( tr->threadTraces, seq, all, what, iI, oA); break; --- 464,469 ---- AllocTrace* tr = static_cast<AllocTrace*>( p); ! if( what == ALLOC_TRACE_OBJECTS) getDataFromList( tr->objectTraces, seq, all, what, iI, oA, cF); ! else getDataFromList( tr->threadTraces, seq, all, what, iI, oA, cF); break; *************** *** 477,482 **** AllocObject* o = static_cast<AllocObject*>( p); ! if( what == ALLOC_OBJECT_METHODS) getDataFromList( o->objectMethods, seq, all, what, iI, oA); ! else getDataFromList( o->threadObjects, seq, all, what, iI, oA); break; --- 477,482 ---- AllocObject* o = static_cast<AllocObject*>( p); ! if( what == ALLOC_OBJECT_METHODS) getDataFromList( o->objectMethods, seq, all, what, iI, oA, cF); ! else getDataFromList( o->threadObjects, seq, all, what, iI, oA, cF); break; *************** *** 490,495 **** AllocObjectMethod* om = static_cast<AllocObjectMethod*>( p); ! if( what == ALLOC_OBJECT_METHOD_THREADS) getDataFromList( om->threadObjectMethods, seq, all, what, iI, oA); ! else getDataFromList( om->objectTraces, seq, all, what, iI, oA); break; --- 490,495 ---- AllocObjectMethod* om = static_cast<AllocObjectMethod*>( p); ! if( what == ALLOC_OBJECT_METHOD_THREADS) getDataFromList( om->threadObjectMethods, seq, all, what, iI, oA, cF); ! else getDataFromList( om->objectTraces, seq, all, what, iI, oA, cF); break; *************** *** 501,505 **** AllocObjectTrace* otr = static_cast<AllocObjectTrace*>( p); ! getDataFromList( otr->threadObjectTraces, seq, all, what, iI, oA); break; --- 501,505 ---- AllocObjectTrace* otr = static_cast<AllocObjectTrace*>( p); ! getDataFromList( otr->threadObjectTraces, seq, all, what, iI, oA, cF); break; *************** *** 515,522 **** Thread* th = static_cast<Thread*>( p); ! if( what == ALLOC_THREAD_OBJECTS) getDataFromList( th->allocThreadObjects, seq, all, what, iI, oA); ! else if( what == ALLOC_THREAD_METHODS) getDataFromList( th->allocThreadMethods, seq, all, what, iI, oA); ! else if( what == CPU_THREAD_METHODS) getDataFromList( th->cpuThreadMethods, seq, all, what, iI, oA); ! else getDataFromList( th->monThreadMethods, seq, all, what, iI, oA); break; --- 515,522 ---- Thread* th = static_cast<Thread*>( p); ! if( what == ALLOC_THREAD_OBJECTS) getDataFromList( th->allocThreadObjects, seq, all, what, iI, oA, cF); ! else if( what == ALLOC_THREAD_METHODS) getDataFromList( th->allocThreadMethods, seq, all, what, iI, oA, cF); ! else if( what == CPU_THREAD_METHODS) getDataFromList( th->cpuThreadMethods, seq, all, what, iI, oA, cF); ! else getDataFromList( th->monThreadMethods, seq, all, what, iI, oA, cF); break; *************** *** 528,532 **** AllocThreadObject* to = static_cast<AllocThreadObject*>( p); ! getDataFromList( to->threadObjectMethods, seq, all, what, iI, oA); break; --- 528,532 ---- AllocThreadObject* to = static_cast<AllocThreadObject*>( p); ! getDataFromList( to->threadObjectMethods, seq, all, what, iI, oA, cF); break; *************** *** 538,542 **** AllocThreadObjectMethod* tom = static_cast<AllocThreadObjectMethod*>( p); ! getDataFromList( tom->threadObjectTraces, seq, all, what, iI, oA); break; --- 538,542 ---- AllocThreadObjectMethod* tom = static_cast<AllocThreadObjectMethod*>( p); ! getDataFromList( tom->threadObjectTraces, seq, all, what, iI, oA, cF); break; *************** *** 550,555 **** AllocThreadMethod* tm = static_cast<AllocThreadMethod*>( p); ! if( what == ALLOC_THREAD_METHOD_OBJECTS) getDataFromList( tm->threadObjectMethods, seq, all, what, iI, oA); ! else getDataFromList( tm->threadTraces, seq, all, what, iI, oA); break; --- 550,555 ---- AllocThreadMethod* tm = static_cast<AllocThreadMethod*>( p); ! if( what == ALLOC_THREAD_METHOD_OBJECTS) getDataFromList( tm->threadObjectMethods, seq, all, what, iI, oA, cF); ! else getDataFromList( tm->threadTraces, seq, all, what, iI, oA, cF); break; *************** *** 561,565 **** AllocThreadTrace* ttr = static_cast<AllocThreadTrace*>( p); ! getDataFromList( ttr->threadObjectTraces, seq, all, what, iI, oA); break; --- 561,565 ---- AllocThreadTrace* ttr = static_cast<AllocThreadTrace*>( p); ! getDataFromList( ttr->threadObjectTraces, seq, all, what, iI, oA, cF); break; *************** *** 571,575 **** CpuTrace* tr = static_cast<CpuTrace*>( p); ! getDataFromList( tr->threadTraces, seq, all, what, iI, oA); break; --- 571,575 ---- CpuTrace* tr = static_cast<CpuTrace*>( p); ! getDataFromList( tr->threadTraces, seq, all, what, iI, oA, cF); break; *************** *** 581,585 **** CpuThreadMethod* tm = static_cast<CpuThreadMethod*>( p); ! getDataFromList( tm->threadTraces, seq, all, what, iI, oA); break; --- 581,585 ---- CpuThreadMethod* tm = static_cast<CpuThreadMethod*>( p); ! getDataFromList( tm->threadTraces, seq, all, what, iI, oA, cF); break; *************** *** 591,595 **** MonTrace* tr = static_cast<MonTrace*>( p); ! getDataFromList( tr->threadTraces, seq, all, what, iI, oA); break; --- 591,595 ---- MonTrace* tr = static_cast<MonTrace*>( p); ! getDataFromList( tr->threadTraces, seq, all, what, iI, oA, cF); break; *************** *** 601,605 **** MonThreadMethod* tm = static_cast<MonThreadMethod*>( p); ! getDataFromList( tm->threadTraces, seq, all, what, iI, oA); break; --- 601,605 ---- MonThreadMethod* tm = static_cast<MonThreadMethod*>( p); ! getDataFromList( tm->threadTraces, seq, all, what, iI, oA, cF); break; *************** *** 611,615 **** GroupThread* g = static_cast<GroupThread*>( p); ! getDataFromList( g->threads, seq, all, what, iI, oA); break; --- 611,615 ---- GroupThread* g = static_cast<GroupThread*>( p); ! getDataFromList( g->threads, seq, all, what, iI, oA, cF); break; |