|
94 | 94 | import static com.google.common.base.Preconditions.checkArgument;
|
95 | 95 | import static com.google.common.collect.ImmutableList.toImmutableList;
|
96 | 96 | import static com.google.common.collect.ImmutableMap.toImmutableMap;
|
| 97 | +import static io.airlift.units.DataSize.succinctBytes; |
97 | 98 | import static java.lang.Double.NaN;
|
98 | 99 | import static java.lang.Math.max;
|
99 | 100 | import static java.lang.Math.toIntExact;
|
@@ -376,31 +377,31 @@ private List<OperatorStatistics> createOperatorStatistics(QueryInfo queryInfo)
|
376 | 377 | operatorSummary.getAddInputCalls(),
|
377 | 378 | operatorSummary.getAddInputWall(),
|
378 | 379 | operatorSummary.getAddInputCpu(),
|
379 |
| - operatorSummary.getAddInputAllocation(), |
380 |
| - operatorSummary.getRawInputDataSize(), |
| 380 | + succinctBytes(operatorSummary.getAddInputAllocationInBytes()), |
| 381 | + succinctBytes(operatorSummary.getRawInputDataSizeInBytes()), |
381 | 382 | operatorSummary.getRawInputPositions(),
|
382 |
| - operatorSummary.getInputDataSize(), |
| 383 | + succinctBytes(operatorSummary.getInputDataSizeInBytes()), |
383 | 384 | operatorSummary.getInputPositions(),
|
384 | 385 | operatorSummary.getSumSquaredInputPositions(),
|
385 | 386 | operatorSummary.getGetOutputCalls(),
|
386 | 387 | operatorSummary.getGetOutputWall(),
|
387 | 388 | operatorSummary.getGetOutputCpu(),
|
388 |
| - operatorSummary.getGetOutputAllocation(), |
389 |
| - operatorSummary.getOutputDataSize(), |
| 389 | + succinctBytes(operatorSummary.getGetOutputAllocationInBytes()), |
| 390 | + succinctBytes(operatorSummary.getOutputDataSizeInBytes()), |
390 | 391 | operatorSummary.getOutputPositions(),
|
391 |
| - operatorSummary.getPhysicalWrittenDataSize(), |
| 392 | + succinctBytes(operatorSummary.getPhysicalWrittenDataSizeInBytes()), |
392 | 393 | operatorSummary.getBlockedWall(),
|
393 | 394 | operatorSummary.getFinishCalls(),
|
394 | 395 | operatorSummary.getFinishWall(),
|
395 | 396 | operatorSummary.getFinishCpu(),
|
396 |
| - operatorSummary.getFinishAllocation(), |
397 |
| - operatorSummary.getUserMemoryReservation(), |
398 |
| - operatorSummary.getRevocableMemoryReservation(), |
399 |
| - operatorSummary.getSystemMemoryReservation(), |
400 |
| - operatorSummary.getPeakUserMemoryReservation(), |
401 |
| - operatorSummary.getPeakSystemMemoryReservation(), |
402 |
| - operatorSummary.getPeakTotalMemoryReservation(), |
403 |
| - operatorSummary.getSpilledDataSize(), |
| 397 | + succinctBytes(operatorSummary.getFinishAllocationInBytes()), |
| 398 | + succinctBytes(operatorSummary.getUserMemoryReservationInBytes()), |
| 399 | + succinctBytes(operatorSummary.getRevocableMemoryReservationInBytes()), |
| 400 | + succinctBytes(operatorSummary.getSystemMemoryReservationInBytes()), |
| 401 | + succinctBytes(operatorSummary.getPeakUserMemoryReservationInBytes()), |
| 402 | + succinctBytes(operatorSummary.getPeakSystemMemoryReservationInBytes()), |
| 403 | + succinctBytes(operatorSummary.getPeakTotalMemoryReservationInBytes()), |
| 404 | + succinctBytes(operatorSummary.getSpilledDataSizeInBytes()), |
404 | 405 | Optional.ofNullable(operatorSummary.getInfo()).map(operatorInfoCodec::toJson),
|
405 | 406 | operatorSummary.getRuntimeStats(),
|
406 | 407 | getPlanNodeEstimateOutputSize(operatorSummary.getPlanNodeId(), estimateMap, planNodeIdMap),
|
@@ -435,21 +436,21 @@ private QueryStatistics createQueryStatistics(QueryInfo queryInfo)
|
435 | 436 | Optional.of(ofMillis(queryStats.getAnalysisTime().toMillis())),
|
436 | 437 | ofMillis(queryStats.getExecutionTime().toMillis()),
|
437 | 438 | queryStats.getPeakRunningTasks(),
|
438 |
| - queryStats.getPeakUserMemoryReservation().toBytes(), |
439 |
| - queryStats.getPeakTotalMemoryReservation().toBytes(), |
440 |
| - queryStats.getPeakTaskUserMemory().toBytes(), |
441 |
| - queryStats.getPeakTaskTotalMemory().toBytes(), |
442 |
| - queryStats.getPeakNodeTotalMemory().toBytes(), |
443 |
| - queryStats.getShuffledDataSize().toBytes(), |
| 439 | + queryStats.getPeakUserMemoryReservationInBytes(), |
| 440 | + queryStats.getPeakTotalMemoryReservationInBytes(), |
| 441 | + queryStats.getPeakTaskUserMemoryInBytes(), |
| 442 | + queryStats.getPeakTaskTotalMemoryInBytes(), |
| 443 | + queryStats.getPeakNodeTotalMemoryInBytes(), |
| 444 | + queryStats.getShuffledDataSizeInBytes(), |
444 | 445 | queryStats.getShuffledPositions(),
|
445 |
| - queryStats.getRawInputDataSize().toBytes(), |
| 446 | + queryStats.getRawInputDataSizeInBytes(), |
446 | 447 | queryStats.getRawInputPositions(),
|
447 |
| - queryStats.getOutputDataSize().toBytes(), |
| 448 | + queryStats.getOutputDataSizeInBytes(), |
448 | 449 | queryStats.getOutputPositions(),
|
449 |
| - queryStats.getWrittenOutputLogicalDataSize().toBytes(), |
| 450 | + queryStats.getWrittenOutputLogicalDataSizeInBytes(), |
450 | 451 | queryStats.getWrittenOutputPositions(),
|
451 |
| - queryStats.getWrittenIntermediatePhysicalDataSize().toBytes(), |
452 |
| - queryStats.getSpilledDataSize().toBytes(), |
| 452 | + queryStats.getWrittenIntermediatePhysicalDataSizeInBytes(), |
| 453 | + queryStats.getSpilledDataSizeInBytes(), |
453 | 454 | queryStats.getCumulativeUserMemory(),
|
454 | 455 | queryStats.getCumulativeTotalMemory(),
|
455 | 456 | queryStats.getCompletedDrivers(),
|
@@ -807,9 +808,9 @@ private static void computeStageStatistics(
|
807 | 808 | executionInfo.getStats().getTotalCpuTime(),
|
808 | 809 | executionInfo.getStats().getRetriedCpuTime(),
|
809 | 810 | executionInfo.getStats().getTotalBlockedTime(),
|
810 |
| - executionInfo.getStats().getRawInputDataSize(), |
811 |
| - executionInfo.getStats().getProcessedInputDataSize(), |
812 |
| - executionInfo.getStats().getPhysicalWrittenDataSize(), |
| 811 | + succinctBytes(executionInfo.getStats().getRawInputDataSizeInBytes()), |
| 812 | + succinctBytes(executionInfo.getStats().getProcessedInputDataSizeInBytes()), |
| 813 | + succinctBytes(executionInfo.getStats().getPhysicalWrittenDataSizeInBytes()), |
813 | 814 | executionInfo.getStats().getGcInfo(),
|
814 | 815 | createResourceDistribution(cpuDistribution.snapshot()),
|
815 | 816 | createResourceDistribution(memoryDistribution.snapshot())));
|
|
0 commit comments