Print all timers in binary machines.

This commit is contained in:
Marcel Keller
2022-09-07 10:57:16 +10:00
parent 817a9b4515
commit 091484bc94
2 changed files with 5 additions and 5 deletions

View File

@@ -74,8 +74,7 @@ void ThreadMaster<T>::run()
for (auto thread : threads) for (auto thread : threads)
thread->join_tape(); thread->join_tape();
Timer timer; machine.reset_timer();
timer.start();
threads[0]->tape_schedule.push(0); threads[0]->tape_schedule.push(0);
@@ -100,7 +99,8 @@ void ThreadMaster<T>::run()
exe_stats.print(); exe_stats.print();
stats.print(); stats.print();
cerr << "Time = " << timer.elapsed() << " seconds" << endl; machine.print_timers();
cerr << "Data sent = " << stats.sent * 1e-6 << " MB" << endl; cerr << "Data sent = " << stats.sent * 1e-6 << " MB" << endl;
machine.print_global_comm(*P, stats); machine.print_global_comm(*P, stats);

View File

@@ -31,8 +31,6 @@ protected:
string domain; string domain;
string relevant_opts; string relevant_opts;
void print_timers();
virtual void load_program(const string& threadname, const string& filename); virtual void load_program(const string& threadname, const string& filename);
public: public:
@@ -65,6 +63,8 @@ public:
void start(int n); void start(int n);
void stop(int n); void stop(int n);
void print_timers();
virtual void reqbl(int) {} virtual void reqbl(int) {}
static OTTripleSetup fresh_ot_setup(Player& P); static OTTripleSetup fresh_ot_setup(Player& P);