aclgrphProfInit

Description

Initializes Profiling and sets Profiling parameters. (Currently, you can specify the path for saving profile data files.)

Prototype

Status aclgrphProfInit(const char *profiler_path, uint32_t length)

Parameters

Parameter

Input/Output

Description

profiler_path

Input

An absolute or relative path for saving profile data files.

length

Input

Length of profiler_path, in bytes. The maximum length is 4096 bytes.

Returns

Parameter

Type

Description

-

Status

SUCCESS: success.

FAILED: failure.

ACL_ERROR_FEATURE_UNSUPPORTED: The aclgrphProfInit API cannot be called in the dynamic profiling scenario.

Restrictions

  • aclgrphProfInit cannot be called repeatedly and must be used in pair with aclgrphProfFinalize. In addition, aclgrphProfInit must be called before aclgrphProfFinalize.
  • It is recommended that aclgrphProfInit be called after GEInitialize and before AddGraph to collect the profile data for AddGraph.