Function: get_op_start
|
C Prototype |
uint64_t aclprofGetOpStart(const void *opInfo, size_t opInfoLen, uint32_t index) |
|---|---|
|
Python Function |
op_start = acl.prof.get_op_start(op_info, op_info_len, index) |
|
Function Usage |
Obtains the operator execution start time (ns). You are advised to create a thread and call this API in the new thread. Otherwise, this API call will block the main thread. |
|
Input Description |
op_info: int, memory address of the operator information. op_info_len: int, length of the operator information. index: int, index of the operator whose name is to be obtained. The value range is [0, Operator count – 1]. Call acl.prof.get_op_num to obtain the operator count. |
|
Return Value |
op_start: int, execution start time of the operator. |
|
Reference |