Skip to content
Snippets Groups Projects
Commit a68b634b authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

cleaned up IRDB output so that methods don't have debug output

Former-commit-id: 675c65cc40c71fd0d961022ba1af7664f8024ed1
parent d4f01008
Branches
Tags
No related merge requests found
......@@ -61,7 +61,7 @@ int IRDBObjects_t::writeBackFileIR(const db_id_t file_id)
try
{
cout<<"Writing changes for "<<the_file->GetURL()<<endl;
// cout<<"Writing changes for "<<the_file->GetURL()<<endl;
// make sure static variable is set in the calling module -- IMPORTANT
const auto & the_fileIR = (it->second).fileIR;
the_fileIR->SetArchitecture();
......@@ -145,7 +145,7 @@ int IRDBObjects_t::writeBackVariant(const db_id_t variant_id)
try
{
cout<<"Writing changes for variant "<<variant_id<<endl;
// cout<<"Writing changes for variant "<<variant_id<<endl;
it->second->WriteToDB();
return 0;
}
......
......@@ -711,7 +711,7 @@ void FileIR_t::ReadRelocsFromDB
void FileIR_t::WriteToDB()
{
const auto WriteIRDB_start = clock();
// const auto WriteIRDB_start = clock();
const auto pqIntr=dynamic_cast<pqxxDB_t*>(dbintr);
assert(pqIntr);
......@@ -897,17 +897,18 @@ void FileIR_t::WriteToDB()
}
W_reloc.complete();
/* std::cout << std::dec;
const auto WriteIRDB_end = clock();
const auto read_time = (double)(ReadIRDB_end-ReadIRDB_start)/ CLOCKS_PER_SEC;
const auto write_time = (double)(WriteIRDB_end-WriteIRDB_start)/ CLOCKS_PER_SEC;
const auto wall_time = (double)(WriteIRDB_end-ReadIRDB_start)/ CLOCKS_PER_SEC;
const auto transform_time=wall_time - read_time - write_time;
std::cout << std::dec;
std::cout << std::fixed << std::setprecision(2) << "#ATTRIBUTE ReadIRDB_WallClock=" << read_time <<endl;
std::cout << std::fixed << std::setprecision(2) << "#ATTRIBUTE WriteIRDB_WallClock=" << write_time << endl;
std::cout << std::fixed << std::setprecision(2) << "#ATTRIBUTE TotalIRDB_WallClock=" << wall_time << endl;
std::cout << std::fixed << std::setprecision(2) << "#ATTRIBUTE TransformIRDB_WallClock=" << transform_time << endl;
*/
}
......
......@@ -473,8 +473,8 @@ void VariantID_t::ReadFilesFromDB()
File_t *newfile=new File_t(file_id,orig_fid,url,hash,type,oid,atn,ftn,itn,icfs,icfs_map,rtn,typ,dtn,ehp,css,doipid);
std::cout<<"Found file "<<file_id<<"."<<std::endl;
std::cout<<" atn: " << atn << " ftn: " << ftn << " rtn: " << rtn << " typ: " << typ << std::endl;
// std::cout<<"Found file "<<file_id<<"."<<std::endl;
// std::cout<<" atn: " << atn << " ftn: " << ftn << " rtn: " << rtn << " typ: " << typ << std::endl;
files.insert(newfile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment