Versions in this module Expand all Collapse all v1 v1.0.2 Sep 30, 2016 Changes in this version + const AcceptedConnection + const Announce + const ClientError + const ClosedConnection + const Completed + const DeletedLeech + const DeletedSeed + const DeletedTorrent + const ErroredRequest + const HandledRequest + const NewLeech + const NewSeed + const NewTorrent + const ReapedLeech + const ReapedSeed + const ReapedTorrent + const ResponseTime + const Scrape + func RecordEvent(event int) + func RecordPeerEvent(event int, ipv6 bool) + func RecordTiming(event int, duration time.Duration) + type BasicMemStats struct + Alloc uint64 + Frees uint64 + HeapAlloc uint64 + HeapIdle uint64 + HeapInuse uint64 + HeapObjects uint64 + HeapReleased uint64 + HeapSys uint64 + LatestPauseNs uint64 + Lookups uint64 + Mallocs uint64 + PauseTotalNs uint64 + Sys uint64 + TotalAlloc uint64 + type MemStatsWrapper struct + func NewMemStatsWrapper(verbose bool) *MemStatsWrapper + func (s *MemStatsWrapper) Update() + type PeerClassStats struct + Current int64 + Joined uint64 + Left uint64 + Reaped uint64 + type PeerStats struct + Completed uint64 + Seeds PeerClassStats + type PercentileTimes struct + P50 *faststats.Percentile + P90 *faststats.Percentile + P95 *faststats.Percentile + type Stats struct + Announces uint64 + BytesTransmitted uint64 + ClientErrors uint64 + ConnectionsAccepted uint64 + GoRoutines int + IPv4Peers PeerStats + IPv6Peers PeerStats + OpenConnections int64 + RequestsErrored uint64 + RequestsHandled uint64 + ResponseTime PercentileTimes + Scrapes uint64 + Started time.Time + TorrentsAdded uint64 + TorrentsReaped uint64 + TorrentsRemoved uint64 + TorrentsSize uint64 + var DefaultStats *Stats + func New(cfg config.StatsConfig) *Stats + func (s *Stats) Close() + func (s *Stats) Flattened() flatjson.Map + func (s *Stats) RecordEvent(event int) + func (s *Stats) RecordPeerEvent(event int, ipv6 bool) + func (s *Stats) RecordTiming(event int, duration time.Duration) + func (s *Stats) Uptime() time.Duration