public <A extends Appendable> A appendReport(A target) throws IOException {
target.append(label);
if (label.length()>0) {
target.append(' ');
}
Appendables.appendValue(target, "Duration :",duration,"ms ");
Appendables.appendValue(target, "TotalBytes :",totalBytes()," ");
Appendables.appendValue(target, "BlobCount :",totalBlobCount," ");
if (0!=duration) {
long kbps = (totalBytes()*8L)/duration;
if (kbps>16000) {
Appendables.appendValue(target, "mbps :",(kbps/1000L),"\n");
} else {
Appendables.appendValue(target, "kbps :",(kbps),"\n");
}
} else {
target.append("\n");
}
return target;
}