MCPcopy Create free account
hub / github.com/astercloud/aster / Stats

Method Stats

pkg/actor/system.go:721–729  ·  view source on GitHub ↗

Stats 获取统计信息

()

Source from the content-addressed store, hash-verified

719
720// Stats 获取统计信息
721func (s *System) Stats() *SystemStats {
722 return &SystemStats{
723 TotalActors: atomic.LoadInt64(&s.stats.TotalActors),
724 TotalMessages: atomic.LoadInt64(&s.stats.TotalMessages),
725 DeadLetters: atomic.LoadInt64(&s.stats.DeadLetters),
726 ProcessedMsgs: atomic.LoadInt64(&s.stats.ProcessedMsgs),
727 StartTime: s.stats.StartTime,
728 }
729}
730
731// GetActor 获取 Actor(用于调试)
732func (s *System) GetActor(name string) (*PID, bool) {

Callers 2

TestSystem_StatsFunction · 0.95
TestActorStatsMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestSystem_StatsFunction · 0.76
TestActorStatsMethod · 0.36