added runtime in ms to -p option
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user