Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
a68b634b
Commit
a68b634b
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
cleaned up IRDB output so that methods don't have debug output
Former-commit-id: 675c65cc40c71fd0d961022ba1af7664f8024ed1
parent
d4f01008
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libIRDB/src/core/IRDB_Objects.cpp
+2
-2
2 additions, 2 deletions
libIRDB/src/core/IRDB_Objects.cpp
libIRDB/src/core/fileir.cpp
+4
-3
4 additions, 3 deletions
libIRDB/src/core/fileir.cpp
libIRDB/src/core/variantid.cpp
+2
-2
2 additions, 2 deletions
libIRDB/src/core/variantid.cpp
with
8 additions
and
7 deletions
libIRDB/src/core/IRDB_Objects.cpp
+
2
−
2
View file @
a68b634b
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
libIRDB/src/core/fileir.cpp
+
4
−
3
View file @
a68b634b
...
...
@@ -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;
*/
}
...
...
This diff is collapsed.
Click to expand it.
libIRDB/src/core/variantid.cpp
+
2
−
2
View file @
a68b634b
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment