Class BsdGraphicsCard
java.lang.Object
oshi.hardware.common.AbstractGraphicsCard
oshi.hardware.common.platform.unix.BsdGraphicsCard
- All Implemented Interfaces:
GraphicsCard
Shared graphics card implementation for BSDs that use
pcidump -v to enumerate PCI devices (NetBSD, OpenBSD).-
Constructor Summary
ConstructorsConstructorDescriptionBsdGraphicsCard(String name, String deviceId, String vendor, String versionInfo, long vram) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<GraphicsCard> Gets graphics cards by parsingpcidump -voutput.Methods inherited from class AbstractGraphicsCard
createStatsSession, getDeviceId, getName, getVendor, getVersionInfo, getVRam, toStringModifier and TypeMethodDescriptionOpens a newGpuStatssession for sampling dynamic GPU metrics.Retrieves the card's Device IDgetName()Retrieves the full name of the card.Retrieves the card's manufacturer/vendorRetrieves a list of version/revision data from the card.longgetVRam()Retrieves the Video RAM (VRAM) available on the GPUtoString()Returns a string representation of this graphics card including any available dynamic metrics.
-
Constructor Details
-
BsdGraphicsCard
-
-
Method Details
-
getGraphicsCards
Gets graphics cards by parsingpcidump -voutput.- Returns:
- List of
GraphicsCardobjects.
-