public void readDataBytesPerSecond(long bytes, long nanos) { readBytes.add(bytes); if (bytes < 100 * 1024) { time0Bto100KB.add(nanos, NANOSECONDS); } else if (bytes < 1024 * 1024) { time100KBto1MB.add(nanos, NANOSECONDS); } else if (bytes < 10 * 1024 * 1024) { time1MBto10MB.add(nanos, NANOSECONDS); } else { time10MBPlus.add(nanos, NANOSECONDS); } }
private static DistributionSnapshot getTestDistribution(int count) { Distribution distribution = new Distribution(); for (int i = 0; i < count; i++) { distribution.add(i); } return distribution.snapshot(); } }
@Override public long getEstimatedSize() { long estimatedSize = INSTANCE_SIZE; if (digest != null) { estimatedSize += digest.estimatedInMemorySizeInBytes(); } return estimatedSize; } }
/** * Record the amount of physical bytes that were read by an operator. * This metric is valid only for source operators. */ public void recordRawInput(long sizeInBytes) { rawInputDataSize.update(sizeInBytes); }
private static DistributionSnapshot getTestDistribution(int count) { Distribution distribution = new Distribution(); for (int i = 0; i < count; i++) { distribution.add(i); } return distribution.snapshot(); } }
public void addInputPageSizesInBytes(long bytes) { inputPageSizeInBytes.add(bytes); } }
@Override public long getEstimatedSize() { long estimatedSize = INSTANCE_SIZE; if (qdigest != null) { estimatedSize += qdigest.estimatedInMemorySizeInBytes(); } return estimatedSize; } }
public void addMaxCombinedBytesPerRow(long bytes) { maxCombinedBytesPerRow.add(bytes); } }
public void newReadRetry() { readRetries.update(1); } }
public void addScanPageSize(long bytes) { scanPageSize.add(bytes); }
public void recordStreamedIndexJoinLookup() { streamedIndexJoinLookups.update(1); } }
public void newListObjectsCall() { listObjectsCalls.update(1); }
public void recordSuccessfulIndexJoinLookupByLimitedRequest() { successfulIndexJoinLookupsByLimitedRequest.update(1); }
public void uploadStarted() { startedUploads.update(1); }