fix spm bugs and add some user friendly mechanisms
This commit is contained in:
@ -25,12 +25,14 @@ public:
|
||||
ObEvolutionStat()
|
||||
: executions_(0),
|
||||
cpu_time_(0),
|
||||
elapsed_time_(0)
|
||||
elapsed_time_(0),
|
||||
error_cnt_(0)
|
||||
{}
|
||||
ObEvolutionStat(const ObEvolutionStat &other)
|
||||
: executions_(other.executions_),
|
||||
cpu_time_(other.cpu_time_),
|
||||
elapsed_time_(other.elapsed_time_)
|
||||
elapsed_time_(other.elapsed_time_),
|
||||
error_cnt_(other.error_cnt_)
|
||||
{}
|
||||
virtual ~ObEvolutionStat() {}
|
||||
inline void reset()
|
||||
@ -38,6 +40,7 @@ public:
|
||||
executions_ = 0;
|
||||
cpu_time_ = 0;
|
||||
elapsed_time_ = 0;
|
||||
error_cnt_ = 0;
|
||||
}
|
||||
inline ObEvolutionStat& operator=(const ObEvolutionStat &other)
|
||||
{
|
||||
@ -45,14 +48,16 @@ public:
|
||||
executions_ = other.executions_;
|
||||
cpu_time_ = other.cpu_time_;
|
||||
elapsed_time_ = other.elapsed_time_;
|
||||
error_cnt_ = other.error_cnt_;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
TO_STRING_KV(K_(executions), K_(cpu_time), K_(elapsed_time));
|
||||
TO_STRING_KV(K_(executions), K_(cpu_time), K_(elapsed_time), K_(error_cnt));
|
||||
public:
|
||||
int64_t executions_; // The total number of executions in the evolution process
|
||||
int64_t cpu_time_; // The total CPU time consumed during the evolution process
|
||||
int64_t elapsed_time_;
|
||||
int64_t error_cnt_;
|
||||
};
|
||||
|
||||
struct AlterPlanBaselineArg
|
||||
|
||||
Reference in New Issue
Block a user