added runtime in ms to -p option

This commit is contained in:
2021-03-28 23:52:33 +02:00
parent c75a04a4f7
commit a92020ac1e
4 changed files with 30 additions and 10 deletions

View File

@@ -3,6 +3,10 @@
#include "ml.h"
#include <unordered_map>
#include <chrono>
static const int method_name_print_len = 15;
static const int print_top_methods = 15;
class MlPerfMon {
@@ -25,4 +29,5 @@ public:
private:
bool perfOn;
std::unordered_map<std::string, long> calls_counter;
std::chrono::time_point<std::chrono::high_resolution_clock> start_time;
};