Function: range_start

C Prototype

aclError aclprofRangeStart(void *stamp, uint32_t *rangeId)

Python Function

range_id, ret = acl.prof.range_start(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 Start or Stop. The tool also generates a unique process ID, and saves the stamp in a map maintained by process.

Input Description

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

Return Value

range_id: int, unique ID of the msproftx event stamp. Used to distinguish between threads.

ret: int, error code.

  • 0 indicates success.
  • Other values indicate failure.

Restrictions

Reference

For the API call example, see Profile Data Collection.