| 48 | } |
| 49 | |
| 50 | int MethodStatus::Expose(const butil::StringPiece& prefix) { |
| 51 | if (_nconcurrency_bvar.expose_as(prefix, "concurrency") != 0) { |
| 52 | return -1; |
| 53 | } |
| 54 | if (_nerror_bvar.expose_as(prefix, "error") != 0) { |
| 55 | return -1; |
| 56 | } |
| 57 | if (_eps_bvar.expose_as(prefix, "eps") != 0) { |
| 58 | return -1; |
| 59 | } |
| 60 | if (_latency_rec.expose(prefix) != 0) { |
| 61 | return -1; |
| 62 | } |
| 63 | if (_cl) { |
| 64 | if (_max_concurrency_bvar.expose_as(prefix, "max_concurrency") != 0) { |
| 65 | return -1; |
| 66 | } |
| 67 | } |
| 68 | return 0; |
| 69 | } |
| 70 | |
| 71 | template <typename T> |
| 72 | void OutputTextValue(std::ostream& os, |
no test coverage detected