Update of /cvsroot/javaprofiler/library/demo/04
In directory usw-pr-cvs1:/tmp/cvs-serv31762/demo/04
Modified Files:
README Test.java
Log Message:
new getParents() method added to communication interface
Index: README
===================================================================
RCS file: /cvsroot/javaprofiler/library/demo/04/README,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** README 3 Dec 2001 16:26:25 -0000 1.1
--- README 4 Apr 2002 00:49:14 -0000 1.2
***************
*** 2,3 ****
--- 2,7 ----
getChangedThruIterator() methods). It does the same as example 01 (very slow)
and 02 (fast). Read comments in the file.
+
+ There is some checking added so it looks a program is slow, but it is not true.
+ It is just because of additional checking of all parents of each method thru
+ IProf.getParents() method. Remove this checking and see how fast it is.
Index: Test.java
===================================================================
RCS file: /cvsroot/javaprofiler/library/demo/04/Test.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Test.java 26 Jan 2002 23:52:44 -0000 1.4
--- Test.java 4 Apr 2002 00:49:14 -0000 1.5
***************
*** 62,65 ****
--- 62,71 ----
System.out.println( " METHOD: " + mi.methodName);
+ // check parents if everything is okay (not necessary)
+ IProf.sParents parents = iprof.getParents( sid.objId);
+
+ if( objId != sid.parentUpObjId ||
+ objId != parents.parentUpObjId) System.exit( 1);
+
numMethods++;
}
|