Browse Source

!14939 add const pointer

From: @robingrosman
Reviewed-by: @pandoublefeng,@tom__chen,@liucunwei
Signed-off-by: @liucunwei
tags/v1.2.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
7bb602a535
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      mindspore/ccsrc/minddata/dataset/engine/perf/cpu_sampling.cc

+ 3
- 3
mindspore/ccsrc/minddata/dataset/engine/perf/cpu_sampling.cc View File

@@ -138,7 +138,7 @@ Status DeviceCpu::Collect(const ExecutionTree *tree) {
first_collect_ = false;
return Status::OK();
}
Status DeviceCpu::Analyze(std::string *name, double *utilization, std::string *extra_message) {
Status DeviceCpu::Analyze(std::string *const name, double *utilization, std::string *const extra_message) {
name->clear();
name->append("device_info");
int total_samples = cpu_util_.size();
@@ -354,7 +354,7 @@ Status OperatorCpu::Collect(const ExecutionTree *tree) {
return Status::OK();
}

Status OperatorCpu::Analyze(std::string *name, double *utilization, std::string *extra_message) {
Status OperatorCpu::Analyze(std::string *const name, double *utilization, std::string *const extra_message) {
int total_samples = cpu_op_util_.size();

// Only analyze the middle half of the samples
@@ -512,7 +512,7 @@ Status ProcessCpu::Collect(const ExecutionTree *tree) {
return Status::OK();
}

Status ProcessCpu::Analyze(std::string *name, double *utilization, std::string *extra_message) {
Status ProcessCpu::Analyze(std::string *const name, double *utilization, std::string *const extra_message) {
name->clear();
name->append("process_info");
int total_samples = process_util_.size();


Loading…
Cancel
Save