getPerfProfileAsync method

Future<int> getPerfProfileAsync()

Implementation

Future<int> getPerfProfileAsync() async {
  final rval = cvRunAsync<int>(
    (callback) => cdnn.Net_GetPerfProfile_Async(ref, callback),
    (c, p) {
      final rval = p.cast<ffi.Int64>().value;
      calloc.free(p);
      return c.complete(rval);
    },
  );
  return rval;
}