clear call stack added
This commit is contained in:
parent
3224c22430
commit
af9211a1a0
|
|
@ -47,6 +47,10 @@ std::string MlPerfMon::callstack() const {
|
||||||
return cs.append("\n");
|
return cs.append("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MlPerfMon::clear_callstack() {
|
||||||
|
call_stack.empty();
|
||||||
|
}
|
||||||
|
|
||||||
void MlPerfMon::print_results() {
|
void MlPerfMon::print_results() {
|
||||||
if (perfOn) {
|
if (perfOn) {
|
||||||
std::chrono::time_point<std::chrono::high_resolution_clock> end_time = std::chrono::high_resolution_clock::now();
|
std::chrono::time_point<std::chrono::high_resolution_clock> end_time = std::chrono::high_resolution_clock::now();
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ public:
|
||||||
void add_method_call(const std::string &method);
|
void add_method_call(const std::string &method);
|
||||||
void end_method_call();
|
void end_method_call();
|
||||||
std::string callstack() const;
|
std::string callstack() const;
|
||||||
|
void clear_callstack();
|
||||||
void print_results();
|
void print_results();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue