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");
|
||||
}
|
||||
|
||||
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();
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue