Skip to content

Commit d152d98

Browse files
author
Daniel Kroening
authored
Merge pull request #22 from tautschnig/shared-memory-stats
Print statistics about shared memory accesses
2 parents 99e8ac7 + a5bf0d6 commit d152d98

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/goto-symex/partial_order_concurrency.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,19 @@ void partial_order_concurrencyt::build_event_lists(
153153
numbering[e_it]=cnt;
154154
}
155155
}
156+
157+
for(address_mapt::const_iterator
158+
a_it=address_map.begin();
159+
a_it!=address_map.end();
160+
a_it++)
161+
{
162+
const a_rect &a_rec=a_it->second;
163+
if(a_rec.reads.empty()) continue;
164+
165+
statistics() << "Shared " << a_it->first << ": "
166+
<< a_rec.reads.size() << "R/"
167+
<< a_rec.writes.size() << "W" << eom;
168+
}
156169
}
157170

158171
/*******************************************************************\

0 commit comments

Comments
 (0)