Documentation
¶
Index ¶
- func Cpu() ([]cpu.InfoStat, error)
- func CpuPercent() ([]float64, error)
- func CpuTimes() ([]cpu.TimesStat, error)
- func DiskPartitions() ([]disk.PartitionStat, error)
- func DiskUsage() ([]disk.UsageStat, error)
- func Host() (*host.InfoStat, error)
- func LoadAvg() (*load.AvgStat, error)
- func LoadMisc() (*load.MiscStat, error)
- func Memory() (*mem.VirtualMemoryStat, error)
- func NetConnections() ([]net.ConnectionStat, error)
- func NetIOCounters() ([]net.IOCountersStat, error)
- func NetInterfaces() (net.InterfaceStatList, error)
- type ApplicationsClocks
- type BitRetirement
- type ClockPolicy
- type Clocks
- type ClocksEventReasons
- type CpuCountInfo
- type DefaultApplicationsClocks
- type DeferredClocks
- type DriverModel
- type ECCErrorType
- type ECCErrors
- type ECCMode
- type EncoderStats
- type ErrorType
- type FBCStats
- type Fabric
- type GPU
- type GPUOperationMode
- type GPUResetStatus
- type GPUVirtualizationMode
- type IBMNPU
- type InforomBBXFlush
- type InforomVersion
- type LinkWidths
- type MIGMode
- type MaxClocks
- type MaxCustomerBoostClocks
- type MemoryUsage
- type NvidiaSMILog
- type PCI
- type PCIBridgeChip
- type PCIEGen
- type PCIGPULinkInfo
- type PowerReadings
- type ProcessInfo
- type RetiredPages
- type SupportedGPUTargetTemp
- type SupportedMemClock
- type SysInfo
- type Temperature
- type Utilization
- type Voltage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CpuPercent ¶
func DiskPartitions ¶
func DiskPartitions() ([]disk.PartitionStat, error)
func Memory ¶
func Memory() (*mem.VirtualMemoryStat, error)
func NetConnections ¶
func NetConnections() ([]net.ConnectionStat, error)
func NetIOCounters ¶
func NetIOCounters() ([]net.IOCountersStat, error)
func NetInterfaces ¶
func NetInterfaces() (net.InterfaceStatList, error)
Types ¶
type ApplicationsClocks ¶
type ApplicationsClocks struct {
GraphicsClock string `xml:"graphics_clock"`
MemClock string `xml:"mem_clock"`
}
ApplicationsClocks represents the <applications_clocks> element in the XML.
type BitRetirement ¶
type ClockPolicy ¶
type ClockPolicy struct {
AutoBoost string `xml:"auto_boost"`
AutoBoostDefault string `xml:"auto_boost_default"`
}
ClockPolicy represents the <clock_policy> element in the XML.
type Clocks ¶
type Clocks struct {
GraphicsClock string `xml:"graphics_clock"`
SMClock string `xml:"sm_clock"`
MemClock string `xml:"mem_clock"`
VideoClock string `xml:"video_clock"`
}
Clocks represents the <clocks> element in the XML.
type ClocksEventReasons ¶
type ClocksEventReasons struct {
ClocksEventReasonGpuIdle string `xml:"clocks_event_reason_gpu_idle"`
ClocksEventReasonApplicationsClocksSetting string `xml:"clocks_event_reason_applications_clocks_setting"`
ClocksEventReasonSwPowerCap string `xml:"clocks_event_reason_sw_power_cap"`
ClocksEventReasonHwSlowdown string `xml:"clocks_event_reason_hw_slowdown"`
ClocksEventReasonHwThermalSlowdown string `xml:"clocks_event_reason_hw_thermal_slowdown"`
ClocksEventReasonHwPowerBrakeSlowdown string `xml:"clocks_event_reason_hw_power_brake_slowdown"`
ClocksEventReasonSyncBoost string `xml:"clocks_event_reason_sync_boost"`
ClocksEventReasonSwThermalSlowdown string `xml:"clocks_event_reason_sw_thermal_slowdown"`
ClocksEventReasonDisplayClocksSetting string `xml:"clocks_event_reason_display_clocks_setting"`
}
type CpuCountInfo ¶
func CpuCounts ¶
func CpuCounts() (ret CpuCountInfo, err error)
type DefaultApplicationsClocks ¶
type DefaultApplicationsClocks struct {
GraphicsClock string `xml:"graphics_clock"`
MemClock string `xml:"mem_clock"`
}
DefaultApplicationsClocks represents the <default_applications_clocks> element in the XML.
type DeferredClocks ¶
type DeferredClocks struct {
GraphicsClock string `xml:"graphics_clock"`
MemClock string `xml:"mem_clock"`
}
DeferredClocks represents the <deferred_clocks> element in the XML.
type DriverModel ¶
type ECCErrorType ¶
type ECCErrorType struct {
ErrorCount string `xml:"error_count"`
}
type EncoderStats ¶
type EncoderStats struct {
SessionCount string `xml:"session_count"`
AverageFPS string `xml:"average_fps"`
AverageLatency string `xml:"average_latency"`
}
EncoderStats represents the <encoder_stats> element in the XML.
type FBCStats ¶
type FBCStats struct {
SessionCount string `xml:"session_count"`
AverageFPS string `xml:"average_fps"`
AverageLatency string `xml:"average_latency"`
}
FBCStats represents the <fbc_stats> element in the XML.
type GPU ¶
type GPU struct {
ID string `xml:"id,attr"`
ProductName string `xml:"product_name"`
ProductBrand string `xml:"product_brand"`
ProductArchitecture string `xml:"product_architecture"`
DisplayMode string `xml:"display_mode"`
DisplayActive string `xml:"display_active"`
PersistenceMode string `xml:"persistence_mode"`
AddressingMode string `xml:"addressing_mode"`
MIGMode MIGMode `xml:"mig_mode"`
MIGDevices string `xml:"mig_devices"`
AccountingMode string `xml:"accounting_mode"`
AccountingModeBufferSize int `xml:"accounting_mode_buffer_size"`
DriverModel DriverModel `xml:"driver_model"`
Serial string `xml:"serial"`
UUID string `xml:"uuid"`
MinorNumber string `xml:"minor_number"`
VBIOSVersion string `xml:"vbios_version"`
MultiGPUBoard string `xml:"multigpu_board"`
BoardID string `xml:"board_id"`
BoardPartNumber string `xml:"board_part_number"`
GPUPartNumber string `xml:"gpu_part_number"`
GPUFRUPartNumber string `xml:"gpu_fru_part_number"`
GPUModuleID string `xml:"gpu_module_id"`
InforomVersion InforomVersion `xml:"inforom_version"`
InforomBBXFlush InforomBBXFlush `xml:"inforom_bbx_flush"`
GPUOperationMode GPUOperationMode `xml:"gpu_operation_mode"`
GSPFirmwareVersion string `xml:"gsp_firmware_version"`
GPUVirtualizationMode GPUVirtualizationMode `xml:"gpu_virtualization_mode"`
GPUResetStatus GPUResetStatus `xml:"gpu_reset_status"`
IBMNPU IBMNPU `xml:"ibmnpu"`
PCI PCI `xml:"pci"`
FanSpeed string `xml:"fan_speed"`
PerformanceState string `xml:"performance_state"`
ClocksEventReasons ClocksEventReasons `xml:"clocks_event_reasons"`
SparseOperationMode string `xml:"sparse_operation_mode"`
FBMemoryUsage MemoryUsage `xml:"fb_memory_usage"`
BAR1MemoryUsage MemoryUsage `xml:"bar1_memory_usage"`
CCProtectedMemoryUsage MemoryUsage `xml:"cc_protected_memory_usage"`
ComputeMode string `xml:"compute_mode"`
Utilization Utilization `xml:"utilization"`
EncoderStats EncoderStats `xml:"encoder_stats"`
FBCStats FBCStats `xml:"fbc_stats"`
ECCMode ECCMode `xml:"ecc_mode"`
ECCErrors ECCErrors `xml:"ecc_errors"`
RetiredPages RetiredPages `xml:"retired_pages"`
RemappedRows string `xml:"remapped_rows"`
Temperature Temperature `xml:"temperature"`
SupportedGPUTargetTemp SupportedGPUTargetTemp `xml:"supported_gpu_target_temp"`
GPUPowerReadings PowerReadings `xml:"gpu_power_readings"`
ModulePowerReadings PowerReadings `xml:"module_power_readings"`
Clocks Clocks `xml:"clocks"`
ApplicationsClocks ApplicationsClocks `xml:"applications_clocks"`
DefaultApplicationsClocks ApplicationsClocks `xml:"default_applications_clocks"`
DeferredClocks DeferredClocks `xml:"deferred_clocks"`
MaxClocks MaxClocks `xml:"max_clocks"`
MaxCustomerBoostClocks MaxCustomerBoostClocks `xml:"max_customer_boost_clocks"`
ClockPolicy ClockPolicy `xml:"clock_policy"`
Voltage Voltage `xml:"voltage"`
Fabric Fabric `xml:"fabric"`
SupportedClocks []SupportedMemClock `xml:"supported_clocks>supported_mem_clock"`
Processes []ProcessInfo `xml:"processes>process_info"`
AccountedProcesses string `xml:"accounted_processes"`
}
type GPUOperationMode ¶
type GPUResetStatus ¶
type GPUVirtualizationMode ¶
type InforomBBXFlush ¶
type InforomVersion ¶
type LinkWidths ¶
type MaxClocks ¶
type MaxClocks struct {
GraphicsClock string `xml:"graphics_clock"`
SMClock string `xml:"sm_clock"`
MemClock string `xml:"mem_clock"`
VideoClock string `xml:"video_clock"`
}
MaxClocks represents the <max_clocks> element in the XML.
type MaxCustomerBoostClocks ¶
type MaxCustomerBoostClocks struct {
GraphicsClock string `xml:"graphics_clock"`
}
MaxCustomerBoostClocks represents the <max_customer_boost_clocks> element in the XML.
type MemoryUsage ¶
type MemoryUsage struct {
Total string `xml:"total"`
Reserved string `xml:"reserved"`
Used string `xml:"used"`
Free string `xml:"free"`
}
MemoryUsage represents the <fb_memory_usage> element in the XML.
type NvidiaSMILog ¶
type NvidiaSMILog struct {
Timestamp string `xml:"timestamp"`
DriverVersion string `xml:"driver_version"`
CudaVersion string `xml:"cuda_version"`
AttachedGPUs int `xml:"attached_gpus"`
Gpus []GPU `xml:"gpu"`
}
func Nvidia ¶
func Nvidia() (*NvidiaSMILog, error)
type PCI ¶
type PCI struct {
PCIBus string `xml:"pci_bus"`
PCIDevice string `xml:"pci_device"`
PCIDomain string `xml:"pci_domain"`
PCIDeviceID string `xml:"pci_device_id"`
PCIBusID string `xml:"pci_bus_id"`
PCISubSystemID string `xml:"pci_sub_system_id"`
PCIGPULinkInfo PCIGPULinkInfo `xml:"pci_gpu_link_info"`
PCIBridgeChip PCIBridgeChip `xml:"pci_bridge_chip"`
ReplayCounter string `xml:"replay_counter"`
ReplayRolloverCounter string `xml:"replay_rollover_counter"`
TXUtil string `xml:"tx_util"`
RXUtil string `xml:"rx_util"`
AtomicCapsInbound string `xml:"atomic_caps_inbound"`
AtomicCapsOutbound string `xml:"atomic_caps_outbound"`
}
type PCIBridgeChip ¶
type PCIGPULinkInfo ¶
type PCIGPULinkInfo struct {
PCIEGen PCIEGen `xml:"pcie_gen"`
LinkWidths LinkWidths `xml:"link_widths"`
}
type PowerReadings ¶
type PowerReadings struct {
PowerState string `xml:"power_state"`
PowerDraw string `xml:"power_draw"`
CurrentPowerLimit string `xml:"current_power_limit"`
RequestedPowerLimit string `xml:"requested_power_limit"`
DefaultPowerLimit string `xml:"default_power_limit"`
MinPowerLimit string `xml:"min_power_limit"`
MaxPowerLimit string `xml:"max_power_limit"`
}
type ProcessInfo ¶
type RetiredPages ¶
type RetiredPages struct {
SingleBitRetirement BitRetirement `xml:"multiple_single_bit_retirement"`
DoubleBitRetirement BitRetirement `xml:"double_bit_retirement"`
PendingBlacklist string `xml:"pending_blacklist"`
PendingRetirement string `xml:"pending_retirement"`
}
type SupportedGPUTargetTemp ¶
type SupportedMemClock ¶
type Temperature ¶
type Temperature struct {
GpuTemp string `xml:"gpu_temp"`
GpuTempTlimit string `xml:"gpu_temp_tlimit"`
GpuTempMaxThreshold string `xml:"gpu_temp_max_threshold"`
GpuTempSlowThreshold string `xml:"gpu_temp_slow_threshold"`
GpuTempMaxGpuThreshold string `xml:"gpu_temp_max_gpu_threshold"`
GpuTargetTemperature string `xml:"gpu_target_temperature"`
MemoryTemp string `xml:"memory_temp"`
GpuTempMaxMemThreshold string `xml:"gpu_temp_max_mem_threshold"`
}