MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / print_breakdown

Method print_breakdown

Processor/ThreadQueues.cpp:172–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void ThreadQueues::print_breakdown()
173{
174 if (size() > 0)
175 {
176 if (size() == 1)
177 {
178 cerr << "Spent " << (*this)[0]->timers["online"].full()
179 << " on the online phase and "
180 << (*this)[0]->timers["prep"].full()
181 << " on the preprocessing/offline phase." << endl;
182 }
183 else
184 {
185 cerr << size() << " threads spent a total of " << sum("online").full()
186 << " on the online phase, " << sum("prep").full()
187 << " on the preprocessing/offline phase, and "
188 << sum("wait").full() << " idling." << endl;
189 }
190
191 if (sum("random").elapsed())
192 cerr << "Spent " << sum("random").full()
193 << " on correlated randomness generation." << endl;
194 }
195}
196
197ThreadStats ThreadQueues::total_stats()
198{

Callers 2

run_with_errorMethod · 0.80
stop_threadsMethod · 0.80

Calls 4

sizeFunction · 0.85
sumFunction · 0.85
fullMethod · 0.45
elapsedMethod · 0.45

Tested by

no test coverage detected