| 514 | } |
| 515 | |
| 516 | int64_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 | |
| 530 | int64_t QueryState::AsyncCodegenThreadUserTime() const { |
| 531 | return AsyncCodegenThreadHelper("UserTime"); |
nothing calls this directly
no test coverage detected