tools/compare: print full match data
This commit is contained in:
parent
df7b136f24
commit
89e898ab20
@ -53,7 +53,9 @@ namespace emory {
|
||||
struct side {
|
||||
IdT id;
|
||||
chunk data;
|
||||
} src, dst;
|
||||
};
|
||||
|
||||
side src, dst;
|
||||
|
||||
|
||||
struct src_equality {
|
||||
@ -98,6 +100,16 @@ namespace emory {
|
||||
};
|
||||
|
||||
|
||||
template <typename IdT>
|
||||
std::ostream&
|
||||
operator<< (std::ostream &os, match<IdT> const &val)
|
||||
{
|
||||
return os << "{ src: { id: " << val.src.id << ", data: " << val.src.data << " }"
|
||||
<< ", dst: { id: " << val.dst.id << ", data: " << val.dst.data << " }"
|
||||
<< " }";
|
||||
}
|
||||
|
||||
|
||||
std::vector<match<map const*>> common (map const &a, map const &b);
|
||||
}
|
||||
|
||||
@ -246,7 +258,7 @@ int main (int argc, char const **argv)
|
||||
std::size_t matching = 0;
|
||||
std::vector<std::size_t> source_bytes (argc - ARGS_SOURCE, 0);
|
||||
for (auto const &i: found) {
|
||||
std::cout << i.dst.data << '\n';
|
||||
std::cout << i << '\n';
|
||||
auto const size = i.dst.data.offset.second - i.dst.data.offset.first;
|
||||
matching += size;
|
||||
source_bytes[i.src.id - ARGS_SOURCE] += size;
|
||||
|
Loading…
Reference in New Issue
Block a user