Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUMHzPerCore ¶
CPUMHzPerCore returns the MHz per CPU (P, E) core type.
As with CPUNumCores, asymetric core detection currently only works with Apple Silicon CPUs.
func CPUNumCores ¶
CPUNumCores returns the number of CPU cores available.
This is represented with two values - (Power (P), Efficiency (E)) so we can correctly compute total compute for processors with asymetric cores such as Apple Silicon.
For platforms with symetric cores (or where we do not correcly detect asymetric cores), all cores are presented as P cores.
func RuntimeStats ¶ added in v0.8.0
RuntimeStats is used to return various runtime information
func TotalTicksAvailable ¶
func TotalTicksAvailable() uint64
TotalTicksAvailable calculates the total MHz available across all cores.
Where asymetric cores are correctly detected, the total ticks is the sum of the performance across both core types.
Where asymetric cores are not correctly detected (such as Intel 13th gen), the total ticks available is over-estimated, as we assume all cores are P cores.
Types ¶
This section is empty.