Update of /cvsroot/javaprofiler/test/snapshot
In directory usw-pr-cvs1:/tmp/cvs-serv6697/test/snapshot
Modified Files:
PrintSnap.java TestNoSwing.java
Log Message:
output to err
Index: PrintSnap.java
===================================================================
RCS file: /cvsroot/javaprofiler/test/snapshot/PrintSnap.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** PrintSnap.java 30 Jan 2002 00:23:20 -0000 1.2
--- PrintSnap.java 3 Mar 2002 00:26:30 -0000 1.3
***************
*** 81,103 ****
//iprof = new IProf();
iprof = new IProf( new CommunSetupSocket() );
!
! iprof.run();
try {
! System.out.println( "Ready" );
! // til profiled program is going, do nothing
! while( !iprof.isShutdowned()) Thread.sleep( 1000);
! System.out.println( "DebugOut START" );
! printSnapShot();
! System.out.println( "DebugOut END" );
! iprof.shutdown();
}
catch( Exception e) {
! System.err.println( "an error occurred, exception:");
! System.err.println( e.getClass().getName());
}
--- 81,107 ----
//iprof = new IProf();
iprof = new IProf( new CommunSetupSocket() );
! //iprof = new IProf( new CommunSetupShMem() );
!
! if ( !iprof.run() ) {
! System.err.println("Error in communication");
! return;
! }
try {
! System.err.println( "Ready" );
! // til profiled program is going, do nothing
! while( !iprof.isShutdowned()) Thread.sleep( 1000);
! System.err.println( "DebugOut START" );
! printSnapShot();
! System.err.println( "DebugOut END" );
! iprof.shutdown();
}
catch( Exception e) {
! System.err.println( "an error occurred, exception:");
! System.err.println( e.getClass().getName());
}
Index: TestNoSwing.java
===================================================================
RCS file: /cvsroot/javaprofiler/test/snapshot/TestNoSwing.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** TestNoSwing.java 22 Feb 2002 17:16:40 -0000 1.2
--- TestNoSwing.java 3 Mar 2002 00:26:30 -0000 1.3
***************
*** 92,96 ****
int i;
! System.out.println( "Start" );
System.err.print("Press a key");
try {
--- 92,96 ----
int i;
! System.err.println( "Start" );
System.err.print("Press a key");
try {
***************
*** 105,112 ****
a.initList();
a.sort();
! System.out.print( i + " " );
}
! System.out.println( "end." );
System.err.print("Press a key");
try {
--- 105,112 ----
a.initList();
a.sort();
! System.err.print( i + " " );
}
! System.err.println( "end." );
System.err.print("Press a key");
try {
|