@@ -40,15 +40,15 @@ public class CommWindow extends GenericGraphWindow
40
40
// runs.
41
41
private static int myRun = 0 ;
42
42
43
- private double [][] sentMsgCount ;
44
- private double [][] sentByteCount ;
45
- private double [][] receivedMsgCount ;
46
- private double [][] receivedByteCount ;
47
- private double [][] exclusiveRecv ;
48
- private double [][] exclusiveBytesRecv ;
49
- private int [][] hopCount ;
50
- private double [][] avgHopCount ;
51
- private double [][] avgPeHopCount ;
43
+ private double [][] sentMsgCount ;
44
+ private double [][] sentByteCount ;
45
+ private double [][] receivedMsgCount ;
46
+ private double [][] receivedByteCount ;
47
+ private double [][] externalRecv ;
48
+ private double [][] externalBytesRecv ;
49
+ private int [][] hopCount ;
50
+ private double [][] avgHopCount ;
51
+ private double [][] avgPeHopCount ;
52
52
53
53
// in microseconds, so 1 = "per us", 1000 = "per ms", 1000000 = "per s"
54
54
// user will be able to change this from the UI
@@ -72,8 +72,8 @@ public class CommWindow extends GenericGraphWindow
72
72
private Checkbox sentBytes ;
73
73
private Checkbox receivedMsgs ;
74
74
private Checkbox receivedBytes ;
75
- private Checkbox recvExclusive ;
76
- private Checkbox recvExclusiveBytes ;
75
+ private Checkbox recvExternal ;
76
+ private Checkbox recvExternalBytes ;
77
77
private Checkbox hopCountCB ;
78
78
private Checkbox peHopCountCB ;
79
79
@@ -145,17 +145,15 @@ public void itemStateChanged(ItemEvent ae){
145
145
setYAxis ("Rate of Bytes Received" , "" );
146
146
setXAxis ("Processor" , peList );
147
147
super .refreshGraph ();
148
- }else if (cb == recvExclusive ){
149
- setDataSource ("Rate of Msgs Received Externally" ,
150
- exclusiveRecv , this );
151
- setPopupText ("exclusiveRecv" );
148
+ }else if (cb == recvExternal ){
149
+ setDataSource ("Rate of Msgs Received Externally" , externalRecv , this );
150
+ setPopupText ("externalRecv" );
152
151
setYAxis ("Rate of Messages Received Externally" , "" );
153
152
setXAxis ("Processor" , peList );
154
153
super .refreshGraph ();
155
- } else if (cb == recvExclusiveBytes ){
156
- setDataSource ("Rate of Bytes Received Externally" ,
157
- exclusiveBytesRecv , this );
158
- setPopupText ("exclusiveBytesRecv" );
154
+ } else if (cb == recvExternalBytes ){
155
+ setDataSource ("Rate of Bytes Received Externally" , externalBytesRecv , this );
156
+ setPopupText ("externalBytesRecv" );
159
157
setYAxis ("Rate of Bytes Received Externally" , "" );
160
158
setXAxis ("Processor" , peList );
161
159
super .refreshGraph ();
@@ -201,8 +199,8 @@ private void scaleHistogramData(double newUnit) {
201
199
sentByteCount [pIdx ][ep ] *= scale ;
202
200
receivedMsgCount [pIdx ][ep ] *= scale ;
203
201
receivedByteCount [pIdx ][ep ] *= scale ;
204
- exclusiveRecv [pIdx ][ep ] *= scale ;
205
- exclusiveBytesRecv [pIdx ][ep ] *= scale ;
202
+ externalRecv [pIdx ][ep ] *= scale ;
203
+ externalBytesRecv [pIdx ][ep ] *= scale ;
206
204
}
207
205
}
208
206
unitTime = newUnit ;
@@ -255,19 +253,19 @@ public String[] getPopup(int xVal, int yVal){
255
253
unitTimeStr ,
256
254
_format .format (receivedByteCount [xVal ][yVal ]*timeInterval /unitTime ));
257
255
rString [3 ] = "Processor = " + xAxis .getIndexName (xVal );
258
- } else if (currentArrayName .equals ("exclusiveRecv " )) {
256
+ } else if (currentArrayName .equals ("externalRecv " )) {
259
257
rString [1 ] = "EPid: " + a .getEntryNameByIndex (yVal );
260
258
rString [2 ] = String .format ("Rate = %s messages/%s (%s messages)" ,
261
- _format .format (exclusiveRecv [xVal ][yVal ]),
259
+ _format .format (externalRecv [xVal ][yVal ]),
262
260
unitTimeStr ,
263
- _format .format (exclusiveRecv [xVal ][yVal ]*timeInterval /unitTime ));
261
+ _format .format (externalRecv [xVal ][yVal ]*timeInterval /unitTime ));
264
262
rString [3 ] = "Processor = " + xAxis .getIndexName (xVal );
265
- } else if (currentArrayName .equals ("exclusiveBytesRecv " )) {
263
+ } else if (currentArrayName .equals ("externalBytesRecv " )) {
266
264
rString [1 ] = "EPid: " + a .getEntryNameByIndex (yVal );
267
265
rString [2 ] = String .format ("Rate = %s B/%s (%s bytes)" ,
268
- _format .format (exclusiveBytesRecv [xVal ][yVal ]),
266
+ _format .format (externalBytesRecv [xVal ][yVal ]),
269
267
unitTimeStr ,
270
- _format .format (exclusiveBytesRecv [xVal ][yVal ]*timeInterval /unitTime ));
268
+ _format .format (externalBytesRecv [xVal ][yVal ]*timeInterval /unitTime ));
271
269
rString [3 ] = "Processor = " + xAxis .getIndexName (xVal );
272
270
} else if (currentArrayName .equals ("avgHopCount" )) {
273
271
rString [1 ] = "EPid: " + a .getEntryNameByIndex (yVal );
@@ -321,9 +319,9 @@ private void createLayout() {
321
319
sentBytes = new Checkbox ("Bytes Sent To" , cbg , false );
322
320
receivedMsgs = new Checkbox ("Msgs Recv By" , cbg , false );
323
321
receivedBytes = new Checkbox ("Bytes Recv By" , cbg , false );
324
- recvExclusive = new Checkbox ("External Msgs Recv By" , cbg ,
322
+ recvExternal = new Checkbox ("External Msgs Recv By" , cbg ,
325
323
false );
326
- recvExclusiveBytes = new Checkbox ("External Bytes Recv By" , cbg ,
324
+ recvExternalBytes = new Checkbox ("External Bytes Recv By" , cbg ,
327
325
false );
328
326
329
327
if (MainWindow .BLUEGENE ) {
@@ -336,8 +334,8 @@ private void createLayout() {
336
334
sentBytes .addItemListener (this );
337
335
receivedMsgs .addItemListener (this );
338
336
receivedBytes .addItemListener (this );
339
- recvExclusive .addItemListener (this );
340
- recvExclusiveBytes .addItemListener (this );
337
+ recvExternal .addItemListener (this );
338
+ recvExternalBytes .addItemListener (this );
341
339
if (MainWindow .BLUEGENE ) {
342
340
hopCountCB .addItemListener (this );
343
341
peHopCountCB .addItemListener (this );
@@ -348,8 +346,8 @@ private void createLayout() {
348
346
Util .gblAdd (checkBoxPanel , sentBytes , gbc , 1 ,0 , 1 ,1 , 1 ,1 );
349
347
Util .gblAdd (checkBoxPanel , receivedMsgs , gbc , 2 ,0 , 1 ,1 , 1 ,1 );
350
348
Util .gblAdd (checkBoxPanel , receivedBytes , gbc , 3 ,0 , 1 ,1 , 1 ,1 );
351
- Util .gblAdd (checkBoxPanel , recvExclusive , gbc , 4 ,0 , 1 ,1 , 1 ,1 );
352
- Util .gblAdd (checkBoxPanel , recvExclusiveBytes , gbc , 5 ,0 , 1 ,1 , 1 ,1 );
349
+ Util .gblAdd (checkBoxPanel , recvExternal , gbc , 4 ,0 , 1 ,1 , 1 ,1 );
350
+ Util .gblAdd (checkBoxPanel , recvExternalBytes , gbc , 5 ,0 , 1 ,1 , 1 ,1 );
353
351
354
352
if (MainWindow .BLUEGENE ) {
355
353
Util .gblAdd (blueGenePanel , hopCountCB , gbc , 0 ,0 , 1 ,1 , 1 ,1 );
@@ -424,8 +422,8 @@ private void getData(long startTime, long endTime, SortedSet<Integer> pes){
424
422
sentByteCount = new double [pes .size ()][];
425
423
receivedMsgCount = new double [pes .size ()][];
426
424
receivedByteCount = new double [pes .size ()][];
427
- exclusiveRecv = new double [pes .size ()][];
428
- exclusiveBytesRecv = new double [pes .size ()][];
425
+ externalRecv = new double [pes .size ()][];
426
+ externalBytesRecv = new double [pes .size ()][];
429
427
if (MainWindow .BLUEGENE ) {
430
428
hopCount = new int [pes .size ()][];
431
429
} else {
@@ -440,7 +438,7 @@ private void getData(long startTime, long endTime, SortedSet<Integer> pes){
440
438
LinkedList <Runnable > readyReaders = new LinkedList <Runnable >();
441
439
int pIdx = 0 ;
442
440
for (Integer nextPe : pes ){
443
- readyReaders .add ( new ThreadedFileReader (nextPe , pIdx , startTime , endTime , sentMsgCount , sentByteCount , receivedMsgCount , receivedByteCount , exclusiveRecv , exclusiveBytesRecv , hopCount ) );
441
+ readyReaders .add ( new ThreadedFileReader (nextPe , pIdx , startTime , endTime , sentMsgCount , sentByteCount , receivedMsgCount , receivedByteCount , externalRecv , externalBytesRecv , hopCount ) );
444
442
pIdx ++;
445
443
}
446
444
0 commit comments