Function: start

C Prototype

aclError aclprofStart(const aclprofConfig *profilerConfig)

Python Function

ret = acl.prof.start(profiler_config)

Function Usage

Starts profile data collection.

Call acl.prof.start as required during model execution. Only profile data after the API call is collected.

Input Description

profiler_config: int, profiling configuration data.

Call acl.prof.create_config to create data of the aclprofConfig type in advance.

Return Value

ret: int, error code.

Restrictions

Use this API together with the acl.prof.stop API. Call acl.prof.start first and then acl.prof.stop.

Reference

For the API call example, see Profile Data Collection.