Function: mark

C Prototype

aclError aclprofMark(void *stamp)

Python Function

ret = acl.prof.mark(stamp)

Function Usage

Marks an instantaneous event by msproftx.

After this API is called, the Profiling tool automatically adds the current timestamp to stamp and sets the event type to Mark, indicating that a msproftx profiling process starts.

Input Description

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

Return Value

ret: int, error code.

  • 0 indicates success.
  • Other values indicate failure.

Restrictions

This API must be called between Function: create_stamp and Function: destroy_stamp.

Reference

For the API call example, see Profile Data Collection.