clear call stack added

This commit is contained in:
VaclavT 2021-04-19 21:11:22 +02:00
parent 3224c22430
commit af9211a1a0
2 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,10 @@ std::string MlPerfMon::callstack() const {
return cs.append("\n");
}
void MlPerfMon::clear_callstack() {
call_stack.empty();
}
void MlPerfMon::print_results() {
if (perfOn) {
std::chrono::time_point<std::chrono::high_resolution_clock> end_time = std::chrono::high_resolution_clock::now();

View File

@ -28,6 +28,7 @@ public:
void add_method_call(const std::string &method);
void end_method_call();
std::string callstack() const;
void clear_callstack();
void print_results();
private: