Function Description

Function

When you need to locate the performance bottleneck of your app or the upper-layer framework program, call the Profiling AscendCL extension APIs during the Profiling process (between the aclprofStart and aclprofStop calls). The extension APIs together achieve the msproftx function, which is used to record the time span of specific events during app running and write data to a profile data file. You can use the Profiling tool to parse the file and export the profile data.

msproftx: msprof tool extension, which is an extension of the MindStudio system tuning tool

For details about how to use the Profiling tool to parse and export data, see "Advanced Functions > Data Parsing and Export" in Profiling Instructions.

Involved APIs: Call aclprofCreateStamp, aclprofSetStampTraceMessage, aclprofMark, aclprofPush, aclprofPop, aclprofRangeStart, aclprofRangeStop, and aclprofDestroyStamp between the aclprofStart and aclprofStop calls. These API calls obtain the events that occur at a specific time during app running and record the event time span.

In a process, these APIs can be called for multiple times as required.

API Constraints