Home
last modified time | relevance | path

Searched refs:cpu_limit (Results 1 – 2 of 2) sorted by relevance

/third_party/grpc/src/cpp/server/load_reporter/
Dload_reporter.cc259 (newest->cpu_limit == 0 || oldest->cpu_limit == 0)) { in GenerateLoadBalancingFeedback()
262 if (newest->cpu_limit == 0) --newest; in GenerateLoadBalancingFeedback()
263 if (oldest->cpu_limit == 0) ++oldest; in GenerateLoadBalancingFeedback()
267 newest->cpu_limit == oldest->cpu_limit) { in GenerateLoadBalancingFeedback()
279 double cpu_limit = newest->cpu_limit - oldest->cpu_limit; in GenerateLoadBalancingFeedback() local
284 feedback.set_server_utilization(static_cast<float>(cpu_usage / cpu_limit)); in GenerateLoadBalancingFeedback()
Dload_reporter.h178 uint64_t cpu_limit; member
182 uint64_t errors, uint64_t cpu_usage, uint64_t cpu_limit) in LoadBalancingFeedbackRecord()
187 cpu_limit(cpu_limit) {} in LoadBalancingFeedbackRecord()