commit | a4dcb176a15ee61c9b110340a0d950b2eb86470c | [log] [tgz] |
---|---|---|
author | Seth Hoenig <shoenig@duck.com> | Thu Mar 23 00:44:43 2023 -0500 |
committer | Seth Hoenig <shoenig@duck.com> | Thu Mar 23 00:44:43 2023 -0500 |
tree | d0139d77c3f4d710c5fd188c1eff6a731269a7e0 | |
parent | ddc71cc3873792902541abf821f9d21bbc8d7110 [diff] |
ci: fixup ci yaml structure
The go-m1cpu
module is a library for inspecting Apple Silicon CPUs in Go.
Use the m1cpu
library for looking up the CPU frequency for Apple M1 and M2 CPUs.
go get github.com/shoenig/go-m1cpu@latest
package main
import (
"fmt"
"github.com/shoenig/go-m1cpu"
)
func main() {
fmt.Println("pCore", m1cpu.PCoreGHz())
fmt.Println("eCore", m1cpu.ECoreGHz())
}
This package requires the use of CGO. Extracting the CPU properties is done via Apple's IOKit framework, which is accessible only through system C libraries.
Open source under the MPL