Browse Source

Profiling AR version12

tags/v1.2.0
taoxiangdong 4 years ago
parent
commit
77c21e71b7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/common/profiling/profiling_manager.cc

+ 1
- 1
ge/common/profiling/profiling_manager.cc View File

@@ -98,7 +98,7 @@ ge::Status ProfilingManager::InitFromOptions(const Options &options, MsprofGeOpt
if (options.profiling_mode == "1" && !options.profiling_options.empty()) { if (options.profiling_mode == "1" && !options.profiling_options.empty()) {
// enable profiling by ge option // enable profiling by ge option
if (memcpy_s(prof_conf.options, MSPROF_OPTIONS_DEF_LEN_MAX, options.profiling_options.c_str(), if (memcpy_s(prof_conf.options, MSPROF_OPTIONS_DEF_LEN_MAX, options.profiling_options.c_str(),
sizeof(options.profiling_options.c_str())) != EOK) {
options.profiling_options.size()) != EOK) {
GELOGE(INTERNAL_ERROR, "copy profiling_options failed."); GELOGE(INTERNAL_ERROR, "copy profiling_options failed.");
return INTERNAL_ERROR; return INTERNAL_ERROR;
} }


Loading…
Cancel
Save