cpu

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe struct {
	Model      string `json:"model"`
	NumCores   int    `json:"numCore"`
	NumThreads int    `json:"numThread"`
	NumSockets int    `json:"numSocket"`
	// contains filtered or unexported fields
}

Probe struct for CPUs.

func New

func New() (*Probe, error)

New initializes new probe struct and probes the system.

func (*Probe) JSON

func (p *Probe) JSON() string

JSON representation of the struct.

func (*Probe) String

func (p *Probe) String() string

String representation of the struct.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL