Tungsten v0.1.0 Tungsten.CDP.SystemInfo View Source

SystemInfo

The SystemInfo domain defines methods and events for querying low-level system information.

Link to this section Summary

Link to this section Types

Link to this type

cdp_gpu_device_type() View Source
cdp_gpu_device_type() :: %{
  vendor_id: integer() | float(),
  device_id: integer() | float(),
  vendor_string: String.t(),
  device_string: String.t()
}

SystemInfo.GPUDevice

Describes a single graphics processor (GPU).

Link to this type

cdp_gpu_info_type() View Source
cdp_gpu_info_type() :: %{
  :devices => [cdp_gpu_device_type()],
  optional(:aux_attributes) => map(),
  optional(:feature_status) => map(),
  :driver_bug_workarounds => [String.t()]
}

SystemInfo.GPUInfo

Provides information about the GPU(s) on the system.

Link to this type

cdp_process_info_type() View Source
cdp_process_info_type() :: %{
  type: String.t(),
  id: integer(),
  cpu_time: integer() | float()
}

SystemInfo.ProcessInfo

Represents process info.

Link to this section Functions

Link to this function

get_info(session, parameters \\ %{}, options \\ []) View Source
get_info(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok,
   %{
     gpu: cdp_gpu_info_type(),
     model_name: String.t(),
     model_version: String.t(),
     command_line: String.t()
   }}
  | {:error, term()}

SystemInfo.getInfo

Returns information about the system.

Link to this function

get_process_info(session, parameters \\ %{}, options \\ []) View Source
get_process_info(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, %{process_info: [cdp_process_info_type()]}} | {:error, term()}

SystemInfo.getProcessInfo

Returns information about all running processes.