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

Method UnitsPerSecond

be/src/util/runtime-profile.cc:1784–1792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1782}
1783
1784int64_t RuntimeProfile::UnitsPerSecond(
1785 const Counter* total_counter, const Counter* timer) {
1786 DCHECK(total_counter->unit() == TUnit::BYTES || total_counter->unit() == TUnit::UNIT);
1787 DCHECK(timer->unit() == TUnit::TIME_NS);
1788
1789 if (timer->value() == 0) return 0;
1790 double secs = static_cast<double>(timer->value()) / 1000.0 / 1000.0 / 1000.0;
1791 return total_counter->value() / secs;
1792}
1793
1794int64_t RuntimeProfile::CounterSum(const vector<Counter*>* counters) {
1795 int64_t value = 0;

Callers

nothing calls this directly

Calls 2

unitMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected