|
|
@@ -71,7 +71,7 @@ ProfilingManager::ProfilingManager() |
|
|
|
is_training_trace_(false), |
|
|
|
subscribe_count_(0), |
|
|
|
prof_cb_({nullptr, nullptr}), |
|
|
|
index_id_(UINT64_MAX), |
|
|
|
cur_iter_num_(UINT64_MAX), |
|
|
|
subscribe_info_({false, 0, 0}) { |
|
|
|
} |
|
|
|
|
|
|
@@ -327,6 +327,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY void ProfilingManager::Profilin |
|
|
|
FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ProfilingManager::ProfileStepInfo( |
|
|
|
uint64_t index_id, uint64_t model_id, uint16_t tag_id, rtStream_t stream, int32_t device_id) { |
|
|
|
#ifdef DAVINCI_SUPPORT_PROFILING |
|
|
|
cur_iter_num_ = index_id; |
|
|
|
if (!is_load_profiling_ && subscribe_count_ == 0) { |
|
|
|
GELOGD("Profiling is not turned on, no need to profile step info."); |
|
|
|
return SUCCESS; |
|
|
@@ -608,7 +609,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ProfilingManager::ProfFi |
|
|
|
is_load_profiling_ = false; |
|
|
|
is_training_trace_ = false; |
|
|
|
is_execute_profiling_ = false; |
|
|
|
index_id_ = UINT64_MAX; |
|
|
|
cur_iter_num_ = UINT64_MAX; |
|
|
|
|
|
|
|
// profiling plugin uninit |
|
|
|
PluginUnInit(); |
|
|
|