Update of /cvsroot/javaprofiler/test/module
In directory usw-pr-cvs1:/tmp/cvs-serv5935
Modified Files:
MainThreads.java
Log Message:
shmem connecting enabled
Index: MainThreads.java
===================================================================
RCS file: /cvsroot/javaprofiler/test/module/MainThreads.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** MainThreads.java 29 Jul 2002 16:44:57 -0000 1.4
--- MainThreads.java 7 Aug 2002 17:43:12 -0000 1.5
***************
*** 72,75 ****
--- 72,76 ----
ActiveThreadsView view=new ActiveThreadsView(image);
+ view.setBorder(BorderFactory.createLineBorder(Color.GREEN));
frame.getContentPane().add(view, BorderLayout.CENTER);
***************
*** 87,91 ****
private static IProf connect (String hostName) {
! IProf iprof = new IProf(new CommunSetupSocket(CommunSetupSocket.
CLIENT_MODE, hostName, 25595));
try {
--- 88,96 ----
private static IProf connect (String hostName) {
! IProf iprof;
! if (hostName.compareTo("shmem")==0) {
! iprof = new IProf(new CommunSetupShMem());
! } else
! iprof = new IProf(new CommunSetupSocket(CommunSetupSocket.
CLIENT_MODE, hostName, 25595));
try {
***************
*** 102,106 ****
if (arg.length >= 1)
hostName = arg[0];
! System.out.println("host: " + hostName);
IProf iprof = connect(hostName);
--- 107,114 ----
if (arg.length >= 1)
hostName = arg[0];
! if (hostName.compareTo("shmem")==0)
! System.out.println("Shared memory.");
! else
! System.out.println("host: " + hostName);
IProf iprof = connect(hostName);
|