Update of /cvsroot/javaprofiler/library/demo/07
In directory usw-pr-cvs1:/tmp/cvs-serv20471/demo/07
Modified Files:
Test.java
Log Message:
small changes in examples
Index: Test.java
===================================================================
RCS file: /cvsroot/javaprofiler/library/demo/07/Test.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Test.java 6 Mar 2002 22:03:20 -0000 1.1
--- Test.java 7 Mar 2002 17:15:38 -0000 1.2
***************
*** 74,93 ****
iprof.getCallTreeThruIterator( sid.objId, true);
! if( ct_iterator == null)
! System.out.println( "calltree is empty !");
! else {
! int numOfItems = 0;
! // count number of items in calltree
! while( ct_iterator.hasNext()) {
!
! numOfItems++;
! ct_iterator.next();
! }
System.out.println( "okay, #items = "
+ numOfItems);
- }
System.out.println();
--- 74,91 ----
iprof.getCallTreeThruIterator( sid.objId, true);
! int numOfItems = 0;
! // count number of items in calltree
! while( ct_iterator.hasNext()) {
! numOfItems++;
! ct_iterator.next();
! }
+ if( numOfItems == 0)
+ System.out.println( "calltree is empty !");
+ else
System.out.println( "okay, #items = "
+ numOfItems);
System.out.println();
|