public interface TornadoRuntime
-
Method Summary
Modifier and TypeMethodDescriptiongetBackend(int index) <D extends TornadoBackend>
DgetBackend(Class<D> type) <D extends TornadoBackend>
intgetBackendIndex(Class<D> driverClass) getBackendType(int index) intlongRetrieves the current power metric measured in Watts.booleanChecks whether TornadoVM is configured to support power metrics monitoring.booleanvoidsetDefaultBackend(int index)
-
Method Details
-
getBackend
-
setDefaultBackend
void setDefaultBackend(int index) -
getBackendType
-
getBackend
-
getNumBackends
int getNumBackends() -
getDefaultDevice
TornadoDevice getDefaultDevice() -
getBackendIndex
-
isProfilerEnabled
boolean isProfilerEnabled() -
isPowerMonitoringEnabled
boolean isPowerMonitoringEnabled()Checks whether TornadoVM is configured to support power metrics monitoring.- Returns:
- true if power metrics monitoring is enabled, false otherwise.
-
getPowerMetric
long getPowerMetric()Retrieves the current power metric measured in Watts.- Returns:
- the power metric as a long value, representing the current power consumption in Watts.
-