IsOn returns whether channelz data collection is on.
()
| 52 | |
| 53 | // IsOn returns whether channelz data collection is on. |
| 54 | func IsOn() bool { |
| 55 | return atomic.LoadInt32(&curState) == 1 |
| 56 | } |
| 57 | |
| 58 | // GetTopChannels returns a slice of top channel's ChannelMetric, along with a |
| 59 | // boolean indicating whether there's more top channels to be queried for. |
no outgoing calls