Package com.microblink.blinkid.hardware
Class HardwareInfo
java.lang.Object
com.microblink.blinkid.hardware.HardwareInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
Returns the number of bytes currently allocated by the ML inference engine.static long
If possible, compacts the native memory pressure of the ML inference engine.static String
Returns the JSON containing all the information about the hardware the code is being executed on.
-
Constructor Details
-
HardwareInfo
public HardwareInfo()
-
-
Method Details
-
getHardwareInfo
Returns the JSON containing all the information about the hardware the code is being executed on. -
compactMLNativeMemory
public static long compactMLNativeMemory()If possible, compacts the native memory pressure of the ML inference engine. Keep in mind that this may reduce scanning performance.- Returns:
- Number of bytes still allocated by the ML inference engine.
-
allocatedMLSize
public static long allocatedMLSize()Returns the number of bytes currently allocated by the ML inference engine.- Returns:
- the number of bytes currently allocated by the ML inference engine.
-