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
residencyRe:=regexp.MustCompile(`(\w+-Cluster)\s+HW active residency:\s+(\d+\.\d+)%`)
591
591
frequencyRe:=regexp.MustCompile(`(\w+-Cluster)\s+HW active frequency:\s+(\d+)\s+MHz`)
592
-
ifmodelName=="Apple M3 Max" { // For the M3 Max, we need to manually parse the CPU Usage from the powermetrics output (as current bug in Apple's powermetrics)
592
+
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)
593
593
for_, line:=rangelines {
594
594
595
-
fori:=0; i<=15; i++ {
595
+
maxCores:=15// 16 Cores for M3 Max (4+12)
596
+
ifmodelName=="Apple M2 Max" {
597
+
maxCores=11// 12 Cores M2 Max (4+8)
598
+
}
599
+
fori:=0; i<=maxCores; i++ {
596
600
re:=regexp.MustCompile(`CPU `+strconv.Itoa(i) +` active residency:\s+(\d+\.\d+)%`)
0 commit comments