File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,6 +237,10 @@ type GoStat struct {
237237 Env string // environment variables
238238}
239239
240+ type GoMetrics struct {
241+ M string
242+ }
243+
240244// NetStat is a collection of network engine statistics.
241245type NetStat struct {
242246 NICSt NICStat
@@ -249,6 +253,7 @@ type NetStat struct {
249253 UDPSt UDPStat
250254 RDNSIn RDNSInfo
251255 GOSt GoStat
256+ GOMet GoMetrics
252257}
253258
254259// NIC returns the network interface statistics.
@@ -280,3 +285,6 @@ func (n *NetStat) RDNSINFO() *RDNSInfo { return &n.RDNSIn }
280285
281286// GO returns the Go runtime statistics.
282287func (n * NetStat ) GO () * GoStat { return & n .GOSt }
288+
289+ // GO2 returns the GO runtime metrics on g, m, & p.
290+ func (n * NetStat ) GO2 () * GoMetrics { return & n .GOMet }
Original file line number Diff line number Diff line change @@ -605,6 +605,9 @@ func (t *rtunnel) stat() (*x.NetStat, error) {
605605 }
606606 out .RDNSIn .ProxyStatus = ss .Status
607607 }
608+
609+ out .GOMet .M = core .Metrics ()
610+
608611 return out , nil
609612}
610613
You can’t perform that action at this time.
0 commit comments