version 0.2

try, throw implemented
help screen updates
some code reorganisation
readme and doc updates
This commit is contained in:
2021-06-10 23:26:14 +02:00
parent b50e9ba128
commit f594437b61
7 changed files with 227 additions and 105 deletions

View File

@@ -58,6 +58,16 @@ std::string MlPerfMon::callstack() const {
return cs.append("\n");
}
size_t MlPerfMon::get_callstack_position() {
return call_stack.size();
}
void MlPerfMon::restore_callstack_position(size_t to_position) {
if (to_position < call_stack.size()) {
call_stack.resize(to_position);
}
}
void MlPerfMon::clear_callstack() {
call_stack.empty();
}