Documentation ¶
Overview ¶
Package mac contains Mac-specific pieces of interrogation which are nonetheless testable on arbitrary platforms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DimensionsFromGPUs ¶
DimensionsFromGPUs turns a slice of Mac GPUs into Swarming-style dimensions, e.g. ["8086", "8086:3e9b"]. If there are no GPUs, return ["none"].
Types ¶
type GPU ¶
type GPU struct { // Any string field missing from the plist ends up "". ID string `plist:"spdisplays_device-id"` VendorID string `plist:"spdisplays_vendor-id"` Vendor string `plist:"spdisplays_vendor"` Version string `plist:"spdisplays_gmux-version"` Model string `plist:"sppci_model"` }
func GPUsFromSystemProfilerXML ¶
GPUsFromSystemProfilerXML returns the GPUs found on a Mac by System Profiler, as expressed through its -xml output option. If the output doesn't look valid, returns an error and no GPUs. If there are no GPUs, will return 0 GPUs even if no error occurs.
Click to show internal directories.
Click to hide internal directories.