Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCacheSize ¶
GetCacheSize returns the size of the cache.
Types ¶
type CPUData ¶
type CPUData struct { // BrandName is the name of the CPU BrandName string // Cache contains the cache information Cache CacheInfo }
CPUData contains the CPU information
type CacheInfo ¶
type CacheInfo struct { // L1 is the size of the L1 cache in bytes L1 int64 // L2 is the size of the L2 cache in bytes L2 int64 // L3 is the size of the L3 cache in bytes L3 int64 }
CacheInfo contains the cache information
func (*CacheInfo) CheckAndEstimate ¶
func (c *CacheInfo) CheckAndEstimate()
CheckAndEstimate checks if the cache sizes are valid and estimates them if they are not
type CacheKind ¶
type CacheKind int
CacheKind is a enum that represents the kind of cache.
func GetDefaultCacheTarget ¶
func GetDefaultCacheTarget() CacheKind
GetDefaultCacheTarget returns the default cache target.
func (CacheKind) GetCacheSize ¶
GetCacheSize returns the size of the cache.
Click to show internal directories.
Click to hide internal directories.