You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifmodelName=="Apple M3 Max"||modelName=="Apple M2 Max" { // For the M3/M2 Max, we need to manually parse the CPU Usage from the powermetrics output (as current bug in Apple's powermetrics)
635
+
ifmodelName=="Apple M3 Max"||modelName=="Apple M2 Max"||modelName=="Apple M4 Max" { // For the M3/M2/M4 Max, we need to manually parse the CPU Usage from the powermetrics output (as current bug in Apple's powermetrics)
636
+
coreCounts:=getCoreCounts()
637
+
maxCoresP:=coreCounts["hw.perflevel0.logicalcpu"]
638
+
maxCoresE:=coreCounts["hw.perflevel1.logicalcpu"]
639
+
maxCores:=maxCoresP+maxCoresE// Determine the total number of cores from getCoreCounts()
637
640
for_, line:=rangelines {
638
-
639
-
maxCores:=15// 16 Cores for M3 Max (4+12)
640
-
ifmodelName=="Apple M2 Max" {
641
-
maxCores=11// 12 Cores M2 Max (4+8)
642
-
}
643
641
fori:=0; i<=maxCores; i++ {
644
642
re:=regexp.MustCompile(`CPU `+strconv.Itoa(i) +` active residency:\s+(\d+\.\d+)%`)
0 commit comments