@@ -85,9 +85,8 @@ protected double getCPInstTimeEstimate( Instruction inst, VarStats[] vs, String[
8585 }
8686 vs [1 ]._inmem = true ;
8787 }
88- if ( LOG .isDebugEnabled () && ltime !=0 ) {
89- LOG .debug ("Cost[" +cpinst .getOpcode ()+" - read] = " +ltime );
90- }
88+ if (ltime != 0 )
89+ LOG .debug ("Cost[" + cpinst .getOpcode () + " - read] = " + ltime );
9190
9291 //exec time CP instruction
9392 String opcode = (cpinst instanceof FunctionCallCPInstruction ) ? InstructionUtils .getOpCode (cpinst .toString ()) : cpinst .getOpcode ();
@@ -99,9 +98,8 @@ protected double getCPInstTimeEstimate( Instruction inst, VarStats[] vs, String[
9998 if ( inst instanceof VariableCPInstruction && ((VariableCPInstruction )inst ).getOpcode ().equals (Opcodes .WRITE .toString ()) )
10099 wtime += getHDFSWriteTime (vs [2 ].getRows (), vs [2 ].getCols (), vs [2 ].getSparsity (), ((VariableCPInstruction )inst ).getInput3 ().getName () );
101100
102- if ( LOG .isDebugEnabled () && wtime !=0 ) {
103- LOG .debug ("Cost[" +cpinst .getOpcode ()+" - write] = " +wtime );
104- }
101+ if (wtime != 0 )
102+ LOG .debug ("Cost[" + cpinst .getOpcode () + " - write] = " + wtime );
105103
106104 //total costs
107105 double costs = ltime + etime + wtime ;
@@ -261,8 +259,7 @@ private static double getInstTimeEstimate( String opcode, boolean inMR, long d1m
261259 double nflops = getNFLOP (opcode , inMR , d1m , d1n , d1s , d2m , d2n , d2s , d3m , d3n , d3s , args );
262260 double time = nflops / DEFAULT_FLOPS ;
263261
264- if ( LOG .isDebugEnabled () )
265- LOG .debug ("Cost[" +opcode +"] = " +time +"s, " +nflops +" flops (" +d1m +"," +d1n +"," +d1s +"," +d2m +"," +d2n +"," +d2s +"," +d3m +"," +d3n +"," +d3s +")." );
262+ LOG .debug ("Cost[" + opcode + "] = " + time + "s, " + nflops + " flops (" + d1m + "," + d1n + "," + d1s + "," + d2m + "," + d2n + "," + d2s + "," + d3m + "," + d3n + "," + d3s + ")." );
266263
267264 return time ;
268265 }
0 commit comments