Documentation
¶
Index ¶
- func Finalize()
- func GetCurrentWorkerStatsManager() *workerStatsManagerT
- func GetWorkerStatsManager(workerId int) *workerStatsManagerT
- func InitForManager(numChildren int) (err error)
- func InitForMonitor() (err error)
- func InitForRead(pid int) (err error)
- func InitForWorker(isChild bool, workerId int, zoneId uint32, machineIndex uint32) error
- func PrettyPrint(w io.Writer, workerId string)
- func SetMonPorts(addrs []string)
- func WriteStatsInJson(w io.Writer, workerId string, indent bool)
- type InboundConnStats
- type ReqProcStats
- type ServerStats
- type ShmStatsManager
- func (s *ShmStatsManager) InitForManager(numChildren int) (err error)
- func (s *ShmStatsManager) InitForWorker(isChild bool, workerId int, zoneId uint32, machineIndex uint32) (err error)
- func (s *ShmStatsManager) PrettyPrint(iw io.Writer, workerId string)
- func (s *ShmStatsManager) SetMonPorts(addrs []string)
- type StorageStats
- type WorkerStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentWorkerStatsManager ¶
func GetCurrentWorkerStatsManager() *workerStatsManagerT
func GetWorkerStatsManager ¶
func GetWorkerStatsManager(workerId int) *workerStatsManagerT
func InitForManager ¶
func InitForMonitor ¶
func InitForMonitor() (err error)
func InitForRead ¶
func InitForWorker ¶
func PrettyPrint ¶
func SetMonPorts ¶
func SetMonPorts(addrs []string)
Types ¶
type InboundConnStats ¶
type ReqProcStats ¶
type ServerStats ¶
type ServerStats struct { StartTimestampNs int64 NumShards uint32 NumZones uint32 NumWorkers uint32 Pid uint32 }
func GetServerStats ¶
func GetServerStats() (stats ServerStats)
func (*ServerStats) PrettyPrint ¶
func (s *ServerStats) PrettyPrint(w io.Writer)
type ShmStatsManager ¶
type ShmStatsManager struct { // contains filtered or unexported fields }
func (*ShmStatsManager) InitForManager ¶
func (s *ShmStatsManager) InitForManager(numChildren int) (err error)
func (*ShmStatsManager) InitForWorker ¶
func (*ShmStatsManager) PrettyPrint ¶
func (s *ShmStatsManager) PrettyPrint(iw io.Writer, workerId string)
func (*ShmStatsManager) SetMonPorts ¶
func (s *ShmStatsManager) SetMonPorts(addrs []string)
type StorageStats ¶
type WorkerStats ¶
type WorkerStats struct { Pid uint32 Port uint16 MonPort uint16 StartTimestampNs int64 ZoneId uint32 MachineIndex uint32 LastExitCode int32 NumStarts uint16 ReqProcStats StorageStats InboundConnStats }
Click to show internal directories.
Click to hide internal directories.