aclgrphProfStart
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/ge_prof.h>
- Library file: libmsprofiler.so
Function Usage
Starts profile data collection.
Prototype
1 | Status aclgrphProfStart(aclgrphProfConfig *profiler_config) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
profiler_config |
Input |
Pointer to a struct for a Profiling configuration. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
SUCCESS: success. Other values: failure. |
Restrictions
- This API should be called before the RunGraph call. If it is called during model execution, the profile data after the aclgrphProfStart call is collected. As a result, the data may be incomplete.
- aclgrphProfStart must be used in pair with and be called before aclgrphProfStop.
- aclgrphProfInit > aclgrphProfStart > aclgrphProfStop > aclgrphProfFinalize is a complete API call process. If you want to switch models or graphs in a single process, you need to follow the preceding complete process during multiple rounds of execution. An API cannot be called in disorder or called concurrently for multiple times.
Parent topic: aclgrph APIs