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

Method GetCommandStats

pkg/sandbox/local.go:866–876  ·  view source on GitHub ↗

GetCommandStats 获取命令统计

()

Source from the content-addressed store, hash-verified

864
865// GetCommandStats 获取命令统计
866func (ls *LocalSandbox) GetCommandStats() map[string]*CommandStats {
867 ls.statsMu.RLock()
868 defer ls.statsMu.RUnlock()
869
870 stats := make(map[string]*CommandStats)
871 for k, v := range ls.commandStats {
872 statsCopy := *v
873 stats[k] = &statsCopy
874 }
875 return stats
876}
877
878// SetSecurityLevel 设置安全级别
879func (ls *LocalSandbox) SetSecurityLevel(level SecurityLevel) {

Callers 1

Calls

no outgoing calls

Tested by 1