Skip to content

Commit a5bf0d6

Browse files
committed
Print statistics about shared memory accesses
1 parent c7c382e commit a5bf0d6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/goto-symex/partial_order_concurrency.cpp

+13
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)