Function: push

C Prototype

aclError aclprofPush(void *stamp)

Python Function

ret = acl.prof.push(stamp)

Function Usage

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 or Pop.

Input Description

stamp: int, stamp pointer address, indicating the msproftx event stamp. Specifies the pointer address of the acl.prof.create_stamp API.

Return Value

ret: int, error code.

  • 0 indicates success.
  • Other values indicate failure.

Restrictions

Reference

For the API call example, see Profile Data Collection.