| 496 | } |
| 497 | |
| 498 | string AdmissionController::PoolStats::DebugString() const { |
| 499 | stringstream ss; |
| 500 | ss << "agg_num_running=" << agg_num_running_ << ", "; |
| 501 | ss << "agg_num_queued=" << agg_num_queued_ << ", "; |
| 502 | ss << "agg_mem_reserved=" << PrintBytes(agg_mem_reserved_) << ", "; |
| 503 | ss << "agg_user_loads=" << agg_user_loads_.DebugString() << ", "; |
| 504 | ss << " local_host(local_mem_admitted=" << PrintBytes(local_mem_admitted_) << ", "; |
| 505 | ss << "local_trivial_running=" << local_trivial_running_ << ", "; |
| 506 | ss << DebugPoolStats(local_stats_) << ")"; |
| 507 | return ss.str(); |
| 508 | } |
| 509 | |
| 510 | // Output the string 'value with indentation of 'n' space characters. |
| 511 | // When eof is true, append a newline. |
no test coverage detected