mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 21:48:11 -05:00
Print all timers in binary machines.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user