The APIs in this section cannot be called with Subscribing to Operator Information together. acl.prof.model_subscribe, aclprofGet*, and acl.prof.model_unsubscribe cannot be called between acl.prof.init and acl.prof.finalize.
If Profiling information has been configured using the acl.init API, an error is returned when the acl.prof.init, acl.prof.start, acl.prof.stop, or acl.prof.finalize API is called.
If acl.prof.init has not been called, an error is returned when acl.prof.start, acl.prof.stop, or acl.prof.finalize is called.
When calling acl.prof.start, you can specify one or more devices to profile.
In a user app process, an error is returned if acl.prof.start is called repeatedly and the specified profiling configuration or device is duplicate.
acl.init --> acl.prof.init --> acl.prof.start (specify Device 0 and Device 1) --> Load model 1 --> Execute model 1 --> acl.prof.stop (consistent with the aclprofConfig data of acl.prof.start) --> acl.prof.start (specify Device 1 and Device 2) --> Load model 2 --> Execute model 2 --> acl.prof.stop (consistent with the aclprofConfig data of acl.prof.start) --> acl.prof.finalize --> Execute other tasks --> Unload the model --> acl.finalize
acl.init --> acl.prof.init --> acl.prof.start (specify Device 0 and Device 1) --> acl.prof.start (specify Device 1 and Device 2) --> Load model 1 --> Execute model 1 --> Load model 2 --> Execute model 2 --> acl.prof.stop --> acl.prof.stop --> acl.prof.finalize --> Execute other tasks --> Unload the model --> acl.finalize