Documentation ¶
Overview ¶
Package node gets information about the system's NUMA nodes. This looks at the sysfs's node tree and extracts information about each node. If the node tree doesn't exist on the system, instead of node information, an os.ErrNotExist will be returned. Instead of returning a Go struct, JSON serialized bytes are returned. A function to deserialize the JSON serialized bytes into a node.Nodes struct is provided.
Note: the package name is node and not the final element of the import path (json).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deserialize ¶
Deserialize takes some JSON serialized bytes and unmarshals them as node.Nodes.
func Get ¶
Get returns the current node as JSON serialized bytes using the package's global Profiler.