Function: push
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
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.
Prototype
- C Prototype
1aclError aclprofPush(void *stamp)
- Python Function
1ret = acl.prof.push(stamp)
Parameter Description
|
Parameter |
Description |
|---|---|
|
stamp |
Int, stamp pointer address, indicating the msproftx event stamp. Specifies the pointer address of the acl.prof.create_stamp API. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code.
|
Restrictions
- This API must be used in pair with Function: pop to indicate the start and end time of a time span.
- Cross-thread calls are not supported. You can use the Function: range_start and Function: range_stop pair as an alternative.
- This API must be called between Function: create_stamp and Function: destroy_stamp.