loadInstance static method
Implementation
static Future loadInstance(
int engineId,
VoltronMap params,
) async {
var stopwatch = Stopwatch();
stopwatch.start();
var paramsPair = _parseParams(params);
stopwatch.stop();
LogUtils.profile("loadInstance parse params", stopwatch.elapsedMilliseconds);
_BridgeFFIManager.instance.loadInstance(
engineId,
paramsPair.left,
paramsPair.right.length,
);
stopwatch.stop();
LogUtils.profile("loadInstance", stopwatch.elapsedMilliseconds);
free(paramsPair.left);
}