MCPcopy Create free account
hub / github.com/catboost/catboost / Report

Method Report

library/cpp/testing/benchmark/bench.cpp:328–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 }
327
328 void Report(TResult&& r) override {
329 with_lock (STDOUT_LOCK) {
330 OutputStream << r.TestName
331 << '\t' << r.Samples
332 << '\t' << r.Iterations
333 << '\t' << r.RunTime;
334
335 OutputStream << '\t';
336 if (r.CyclesPerIteration) {
337 OutputStream << TCycleTimer::FmtTime(*r.CyclesPerIteration);
338 } else {
339 OutputStream << '-';
340 }
341
342 OutputStream << '\t';
343 if (r.SecondsPerIteration) {
344 OutputStream << DoFmtTime(*r.SecondsPerIteration);
345 } else {
346 OutputStream << '-';
347 }
348
349 OutputStream << Endl;
350 }
351 }
352 private:
353 IOutputStream& OutputStream;
354 };

Callers 3

with_lockMethod · 0.45
FinishMethod · 0.45
MainMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected