348 G4cout <<
"G4GeometryManager::ReportVoxelStats -- Voxel Statistics" 354 G4int i, nStat = stats.size();
357 for( i=0;i<nStat;++i ) { totalMemory += stats[i].GetMemoryUse(); }
359 G4cout <<
" Total memory consumed for geometry optimisation: " 360 << totalMemory/1024 <<
" kByte" <<
G4endl;
361 G4cout <<
" Total CPU time elapsed for geometry optimisation: " 362 << std::setprecision(2) << totalCpuTime <<
" seconds" 363 << std::setprecision(6) <<
G4endl;
370 G4int nPrint = nStat > 10 ? 10 : nStat;
375 G4cout <<
" Percent Total CPU System CPU Memory Volume\n" 376 <<
" ------- ---------- ---------- -------- ----------" 381 for(i=0;i<nPrint;++i)
387 if (system < 0) { system = 0.0; }
388 if ((total < 0) || (totalCpuTime <
perMillion))
391 { perc = total*100/totalCpuTime; }
393 G4cout << std::setprecision(2)
395 << std::setw(11) << perc
396 << std::setw(13) << total
397 << std::setw(13) << system
398 << std::setw(13) << (stats[i].GetMemoryUse()+512)/1024
400 << stats[i].GetVolume()->GetName()
401 << std::resetiosflags(std::ios::floatfield|std::ios::adjustfield)
402 << std::setprecision(6)
413 G4cout <<
"\n Voxelisation: top memory users:" <<
G4endl;
414 G4cout <<
" Percent Memory Heads Nodes Pointers Total CPU Volume\n" 415 <<
" ------- -------- ------ ------ -------- ---------- ----------" 420 for(i=0;i<nPrint;++i)
422 G4long memory = stats[i].GetMemoryUse();
423 G4double totTime = stats[i].GetTotalTime();
424 if (totTime < 0) { totTime = 0.0; }
426 G4cout << std::setprecision(2)
429 << std::setw(11) << memory/1024 <<
"k " 430 << std::setw( 9) << stats[i].GetNumberHeads()
431 << std::setw( 9) << stats[i].GetNumberNodes()
432 << std::setw(11) << stats[i].GetNumberPointers()
433 << std::setw(13) << totTime <<
" " 435 << stats[i].GetVolume()->GetName()
436 << std::resetiosflags(std::ios::floatfield|std::ios::adjustfield)
437 << std::setprecision(6)
G4GLOB_DLL std::ostream G4cout
static const double perMillion
G4double total(Particle const *const p1, Particle const *const p2)
system("rm -rf microbeam.root")