Documentation ¶
Overview ¶
Package cpux provides information about a system's cpus, where X is the integer of each CPU on the system, e.g. cpu0, cpu1, etc. On linux systems this comes from the sysfs filesystem. Not all paths are available on all systems, e.g. /sys/devices/system/cpu/cpuX/cpufreq and its children may not exist on some systems. If the system doesn't have a particular path, the field's value will be the type's zero value. Instead of returning a Go struct, Flatbuffer serialized bytes are returned. A function to deserialize the Flatbuffer serialized bytes into a cpux.CPU struct is provided.
Note: the package name is cpux and not the final element of the import path (flat).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deserialize ¶
Deserialize takes some Flatbuffer serialized bytes and deserializes them as cpux.CPUs.
Types ¶
type Profiler ¶
Profiler is used to process the cpux information as Flatbuffers serialized bytes.
func (*Profiler) SerializeCPU ¶
SerializeCPU serializes a CPU using flatbuffers and returns the resulting UOffsetT.