getPerfProfile method
GetPerfProfile returns overall time for inference and timings (in ticks) for layers
For further details, please see: https://docs.opencv.org/master/db/d30/classcv_1_1dnn_1_1Net.html#a06ce946f675f75d1c020c5ddbc78aedc
Implementation
(int, VecF64 layersTimes) getPerfProfile() {
final p = calloc<ffi.Int64>();
final p1 = calloc<cvg.VecF64>();
cvRun(() => cdnn.cv_dnn_Net_getPerfProfile(ref, p, p1, ffi.nullptr));
final rval = p.value;
calloc.free(p);
return (rval, VecF64.fromPointer(p1));
}