Skip to content

Commit

Permalink
formatting stats
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLevy committed Nov 26, 2024
1 parent 25ab3d0 commit ada2080
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/lib/geogram/delaunay/periodic_delaunay_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3008,8 +3008,6 @@ namespace GEO {

/*************************************************************************/



PeriodicDelaunay3d::PeriodicDelaunay3d(
bool periodic, double period
) :
Expand Down Expand Up @@ -3921,20 +3919,18 @@ namespace GEO {
index_t tot_rollbacks = 0 ;
index_t tot_failed_locate = 0 ;
for(index_t t=0; t<threads_.size(); ++t) {
/*
Logger::out(phase)
<< "thread " << std::setw(3) << t << " : "
<< std::setw(3) << thread(t)->nb_rollbacks()
<< " rollbacks "
<< std::setw(3) << thread(t)->nb_failed_locate()
<< " restarted locate"
<< std::endl;
*/
Logger::out(phase)
<< "thread " << std::setw(3) << t << " : "
<< std::setw(3) << thread(t)->nb_rollbacks()
<< " rollbacks "
<< std::setw(3) << thread(t)->nb_failed_locate()
<< " restarted locate"
<< std::endl;
tot_rollbacks += thread(t)->nb_rollbacks();
tot_failed_locate += thread(t)->nb_failed_locate();
}
// Logger::out(phase) << "------------------" << std::endl;
Logger::out(phase) // << "total: "
Logger::out(phase) << "------------------" << std::endl;
Logger::out(phase) << "total: "
<< tot_rollbacks << " rollbacks "
<< tot_failed_locate << " restarted locate"
<< std::endl;
Expand Down Expand Up @@ -4425,7 +4421,7 @@ namespace GEO {

std::string PeriodicDelaunay3d::Stats::to_string_raw() const {
return String::format(
"%f %f %f %f %d %d %d %f %d %f %f %f %d",
"%.1f %.1f %.1f %.1f %d %d %d %.1f %d %.1f %.1f %.1f %d",
total_t_,

phase_0_t_,
Expand Down

0 comments on commit ada2080

Please sign in to comment.