Browse Source

Profiling AR version 6

tags/v1.2.0
taoxiangdong 3 years ago
parent
commit
d54a6ea9c9
2 changed files with 3 additions and 4 deletions
  1. +1
    -2
      ge/common/profiling/profiling_manager.cc
  2. +2
    -2
      inc/framework/common/profiling/ge_profiling.h

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

@@ -192,7 +192,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY void ProfilingManager::StopProf
// stop profiling
if (prof_cb_.msprofCtrlCallback == nullptr) {
GELOGE(ge::PARAM_INVALID, "MsprofCtrlCallback callback is nullptr.");
return ge::PARAM_INVALID;
return;
}
int32_t cb_ret = prof_cb_.msprofCtrlCallback(static_cast<uint32_t>(MsprofCtrlCallbackType::MSPROF_CTRL_FINALIZE),
nullptr, 0);
@@ -824,7 +824,6 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY void ProfilingManager::GetFpBpP
std::string &fp_point, std::string &bp_point) {
// Env or options mode, fp_point_/bp_point_ have initiliazed on profiling init
if (!fp_point_.empty() && !bp_point_.empty()) {
GELOGI("Bp Fp have been initialized in env or options");
fp_point = fp_point_;
bp_point = bp_point_;
GELOGI("Bp Fp have been initialized in env or options. bp_point: %s, fp_point: %s", bp_point.c_str(), fp_point.c_str());


+ 2
- 2
inc/framework/common/profiling/ge_profiling.h View File

@@ -31,11 +31,11 @@ enum ProfCommandHandleType {
};

struct ProfCommandHandleData {
unit64_t profSwitch;
uint64_t profSwitch;
uint32_t devNums; // length of device id list
uint32_t devIdList[MAX_DEV_NUM];
uint32_t modelId;
}
};

ge::Status RegProfCtrlCallback(MsprofCtrlCallback func);
ge::Status RegProfSetDeviceCallback(MsprofSetDeviceCallback func);


Loading…
Cancel
Save