for (final MinorFragmentProfile minor : minors) { String fragmentHostName = minor.getEndpoint().getAddress(); final List<OperatorProfile> ops = new ArrayList<>(minor.getOperatorProfileList()); Collections.sort(ops, Comparators.operatorId);
cumulativeFragmentDurationInMillis += p.getEndTime() - p.getStartTime(); List<OperatorProfile> opProfileList = p.getOperatorProfileList(); for (OperatorProfile operatorProfile : opProfileList) { cumulativeProcessInNanos += operatorProfile.getProcessNanos();
totalDuration += p.getEndTime() - p.getStartTime(); List<OperatorProfile> opProfileList = p.getOperatorProfileList(); for (OperatorProfile operatorProfile : opProfileList) { totalProcessInMillis += operatorProfile.getProcessNanos()/1E6;
final ArrayList<OperatorProfile> ops = new ArrayList<>(minor.getOperatorProfileList());
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile message) throws java.io.IOException { if(message.hasState()) output.writeEnum(1, message.getState().getNumber(), false); if(message.hasError()) output.writeObject(2, message.getError(), org.apache.drill.exec.proto.SchemaUserBitShared.DrillPBError.WRITE, false); if(message.hasMinorFragmentId()) output.writeInt32(3, message.getMinorFragmentId(), false); for(org.apache.drill.exec.proto.UserBitShared.OperatorProfile operatorProfile : message.getOperatorProfileList()) output.writeObject(4, operatorProfile, org.apache.drill.exec.proto.SchemaUserBitShared.OperatorProfile.WRITE, true); if(message.hasStartTime()) output.writeInt64(5, message.getStartTime(), false); if(message.hasEndTime()) output.writeInt64(6, message.getEndTime(), false); if(message.hasMemoryUsed()) output.writeInt64(7, message.getMemoryUsed(), false); if(message.hasMaxMemoryUsed()) output.writeInt64(8, message.getMaxMemoryUsed(), false); if(message.hasEndpoint()) output.writeObject(9, message.getEndpoint(), org.apache.drill.exec.proto.SchemaCoordinationProtos.DrillbitEndpoint.WRITE, false); if(message.hasLastUpdate()) output.writeInt64(10, message.getLastUpdate(), false); if(message.hasLastProgress()) output.writeInt64(11, message.getLastProgress(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile message)
private long tallyMajorFragmentCost(List<MajorFragmentProfile> majorFragments) { long globalProcessNanos = 0L; for (MajorFragmentProfile majorFP : majorFragments) { String majorFragmentId = new OperatorPathBuilder().setMajor(majorFP).build(); long processNanos = 0L; for (MinorFragmentProfile minorFP : majorFP.getMinorFragmentProfileList()) { for (OperatorProfile op : minorFP.getOperatorProfileList()) { processNanos += op.getProcessNanos(); } } majorFragmentTallyMap.put(majorFragmentId, processNanos); globalProcessNanos += processNanos; } return globalProcessNanos; }
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile message) throws java.io.IOException { if(message.hasState()) output.writeEnum(1, message.getState().getNumber(), false); if(message.hasError()) output.writeObject(2, message.getError(), org.apache.drill.exec.proto.SchemaUserBitShared.DrillPBError.WRITE, false); if(message.hasMinorFragmentId()) output.writeInt32(3, message.getMinorFragmentId(), false); for(org.apache.drill.exec.proto.UserBitShared.OperatorProfile operatorProfile : message.getOperatorProfileList()) output.writeObject(4, operatorProfile, org.apache.drill.exec.proto.SchemaUserBitShared.OperatorProfile.WRITE, true); if(message.hasStartTime()) output.writeInt64(5, message.getStartTime(), false); if(message.hasEndTime()) output.writeInt64(6, message.getEndTime(), false); if(message.hasMemoryUsed()) output.writeInt64(7, message.getMemoryUsed(), false); if(message.hasMaxMemoryUsed()) output.writeInt64(8, message.getMaxMemoryUsed(), false); if(message.hasEndpoint()) output.writeObject(9, message.getEndpoint(), org.apache.drill.exec.proto.SchemaCoordinationProtos.DrillbitEndpoint.WRITE, false); if(message.hasLastUpdate()) output.writeInt64(10, message.getLastUpdate(), false); if(message.hasLastProgress()) output.writeInt64(11, message.getLastProgress(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile message)