sysinfo

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sysinfo resolves static host facts (CPU model, core count, total memory, OS) shown in every report so measurements are always attributable to the hardware they ran on.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	CPUModel      string `json:"cpu_model"`
	NumCPU        int    `json:"num_cpu"`
	MemTotalBytes uint64 `json:"mem_total_bytes"`
	OS            string `json:"os"`
	Hostname      string `json:"hostname"`
}

Info describes the host the process runs on. Fields degrade gracefully: unknown values are placeholders, never empty strings.

func Get

func Get() Info

Get returns host facts, resolved once per process.

Jump to

Keyboard shortcuts

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