MeVisLab Scripting Reference
MLABSystemInfo Class Reference

Inherits QObject.

Public Slots

CPU System infos


int numberOfCores () const
 
int numberOfPhysicalProcessors () const
 
int numberOfVirtualProcessors () const
 
QString cpuVendorId () const
 
QString cpuModelId () const
 
QString cpuDetailedFeatures () const
 
int physicalMemoryInMB () const
 
int availableMemoryInMB () const
 
bool isNative64Bit () const
 
bool isProcessTranslated () const
 
GPU System infos


int gpuVideoMemoryInMB () const
 
QString glRenderer () const
 
QString glVendor () const
 
QString glVersion () const
 
bool glSupportsExtension (const QString &extension) const
 
bool glSupports10Bit () const
 
bool wasBuiltWithCUDASupport () const
 
bool isMesaSoftwareRenderer () const
 

Detailed Description

Global MLABSystemInfo object available in all scripts.

The MLABSystemInfo object can be used to query for system parameters like number of CPUs, etc.

Member Function Documentation

◆ availableMemoryInMB

int MLABSystemInfo::availableMemoryInMB ( ) const
slot

Returns the available memory of the machine in MB.

◆ cpuDetailedFeatures

QString MLABSystemInfo::cpuDetailedFeatures ( ) const
slot

Returns a string with all information on the features of the CPUs of the machine.

◆ cpuModelId

QString MLABSystemInfo::cpuModelId ( ) const
slot

Returns the CPU model.

◆ cpuVendorId

QString MLABSystemInfo::cpuVendorId ( ) const
slot

Returns the CPU vendor.

◆ glRenderer

QString MLABSystemInfo::glRenderer ( ) const
slot

Returns the GL renderer info.

◆ glSupports10Bit

bool MLABSystemInfo::glSupports10Bit ( ) const
slot

Returns whether GL supports 10bit visual contexts.

◆ glSupportsExtension

bool MLABSystemInfo::glSupportsExtension ( const QString &  extension) const
slot

Returns whether a given GL extension is supported (e.g. GL_ARB_fragment_program).

◆ glVendor

QString MLABSystemInfo::glVendor ( ) const
slot

Returns the GL vendor info.

◆ glVersion

QString MLABSystemInfo::glVersion ( ) const
slot

Returns the OpenGL version string.

◆ gpuVideoMemoryInMB

int MLABSystemInfo::gpuVideoMemoryInMB ( ) const
slot

Returns the video memory of the machine in MB (or 0 if not known).

◆ isMesaSoftwareRenderer

bool MLABSystemInfo::isMesaSoftwareRenderer ( ) const
slot

Returns if the GL driver is the Mesa software renderer (typically llvmpipe)

◆ isNative64Bit

bool MLABSystemInfo::isNative64Bit ( ) const
slot

Returns whether MeVisLab is a native 64Bit application.

◆ isProcessTranslated

bool MLABSystemInfo::isProcessTranslated ( ) const
slot

Determine if MeVisLab is running under dynamic binary translation (e.g. Rosetta for macOS)

◆ numberOfCores

int MLABSystemInfo::numberOfCores ( ) const
slot

Returns the number of cores.

◆ numberOfPhysicalProcessors

int MLABSystemInfo::numberOfPhysicalProcessors ( ) const
slot

Returns the number of physical processors.

◆ numberOfVirtualProcessors

int MLABSystemInfo::numberOfVirtualProcessors ( ) const
slot

Returns the number of virtual processors (depending on number of cores and hyper-threading).

◆ physicalMemoryInMB

int MLABSystemInfo::physicalMemoryInMB ( ) const
slot

Returns the physical memory of the machine in MB.

◆ wasBuiltWithCUDASupport

bool MLABSystemInfo::wasBuiltWithCUDASupport ( ) const
slot

Returns if MeVisLab was built with CUDA support.