Function: push

Applicable Products

  • Ascend 950PR&950DT products: Supported
  • Atlas A3 products: Supported
  • Atlas A2 products: Supported
  • Atlas 200I/500 A2 inference products: Supported
  • Atlas inference products: Supported
  • Atlas training products: Supported

Function

Records the start time of the time span by msproftx when an event occurs.

After this API is called, the profiling tool automatically records the start timestamp in stamp and sets the event type to Push/Pop.

Prototype

  • C Prototype

    aclError aclprofPush(void *stamp)
    
  • Python Function

    ret = acl.prof.push(stamp)
    

Parameters

Parameter Description
stamp Int, stamp pointer address, indicating the msproftx event stamp. This specifies the pointer to the acl.prof.create_stamp API.

Return Values

Return Value Description
ret Int, error code.
0: success
Other values: failure

Constraints