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

Method AsyncCodegenThreadHelper

be/src/runtime/query-state.cc:516–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516int64_t QueryState::AsyncCodegenThreadHelper(const std::string& suffix) const {
517 int64_t res = 0;
518 vector<RuntimeProfile::Counter*> counters;
519 host_profile_->GetCounters(
520 LlvmCodeGen::ASYNC_CODEGEN_THREAD_COUNTERS_PREFIX + suffix, &counters);
521
522 for (const RuntimeProfile::Counter* counter : counters) {
523 DCHECK(counter != nullptr);
524 res += counter->value();
525 }
526
527 return res;
528}
529
530int64_t QueryState::AsyncCodegenThreadUserTime() const {
531 return AsyncCodegenThreadHelper("UserTime");

Callers

nothing calls this directly

Calls 2

GetCountersMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected