From: Marek P. <ma...@us...> - 2002-01-26 10:19:47
|
Update of /cvsroot/javaprofiler/library/demo/04 In directory usw-pr-cvs1:/tmp/cvs-serv15950/demo/04 Modified Files: Test.java Log Message: shared memory communication for linux fixed Index: Test.java =================================================================== RCS file: /cvsroot/javaprofiler/library/demo/04/Test.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Test.java 2001/12/03 16:26:25 1.1 --- Test.java 2002/01/26 10:19:44 1.2 *************** *** 49,53 **** // ask for all methods of given class Iterator iterator = ! iprof.getAllThruIterator( objId, IProf.CLASS_METHODS, true, true, IProf.NO_OPTIONAL_ARG); --- 49,54 ---- // ask for all methods of given class Iterator iterator = ! iprof.getAllThruIterator( objId, ! IProf.CLASS_METHODS, true, true, IProf.NO_OPTIONAL_ARG); *************** *** 82,89 **** // take the first one directly from I/O buffer ! // every time returned, sid references to same object // only data inside it are changed ! // WHY: because 'sameOutputObject' of getAllThruIterator() ! // was set to 'true' => we don't waste our memory IProf.sID sid = (IProf.sID)iterator.next(); --- 83,93 ---- // take the first one directly from I/O buffer ! // every time returned, 'sid' references to same object // only data inside it are changed ! // ! // WHY: ! // because 'sameOutputObject' of getAllThruIterator() ! // was set to 'true' => we don't waste our memory ! IProf.sID sid = (IProf.sID)iterator.next(); *************** *** 102,105 **** --- 106,112 ---- // following two numbers should be the same // if not, something is bad + // (they can vary if new methods are loaded into JVM + // while receiving list of existing methods) + LinkedList list = iprof.getAll( 0, IProf.METHODS); System.out.println( "NUMBER OF METHODS (1): " + numMethods); |