Home
last modified time | relevance | path

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

/external/grpc-grpc/src/cpp/server/load_reporter/
Dload_reporter.cc257 (newest->cpu_limit == 0 || oldest->cpu_limit == 0)) { in GenerateLoadBalancingFeedback()
260 if (newest->cpu_limit == 0) --newest; in GenerateLoadBalancingFeedback()
261 if (oldest->cpu_limit == 0) ++oldest; in GenerateLoadBalancingFeedback()
265 newest->cpu_limit == oldest->cpu_limit) { in GenerateLoadBalancingFeedback()
277 double cpu_limit = newest->cpu_limit - oldest->cpu_limit; in GenerateLoadBalancingFeedback() local
282 feedback.set_server_utilization(static_cast<float>(cpu_usage / cpu_limit)); in GenerateLoadBalancingFeedback()
Dload_reporter.h176 uint64_t cpu_limit; member
180 uint64_t errors, uint64_t cpu_usage, uint64_t cpu_limit) in LoadBalancingFeedbackRecord()
185 cpu_limit(cpu_limit) {} in LoadBalancingFeedbackRecord()