MCPcopy Create free account
hub / github.com/apache/impala / ComputeExchangeScanRatio

Method ComputeExchangeScanRatio

be/src/runtime/runtime-state.cc:298–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298double RuntimeState::ComputeExchangeScanRatio() const {
299 int64_t bytes_read = 0;
300 for (const auto& c : bytes_read_counters_) bytes_read += c->value();
301 if (bytes_read == 0) return 0;
302 int64_t bytes_sent = 0;
303 for (const auto& c : bytes_sent_counters_) bytes_sent += c->value();
304 return (double)bytes_sent / bytes_read;
305}
306
307void RuntimeState::SetMemLimitExceeded(MemTracker* tracker,
308 int64_t failed_allocation_size, const ErrorMsg* msg) {

Callers 1

PrepareMethod · 0.80

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected