| 365 | } |
| 366 | |
| 367 | void PrefilterTree::PrintDebugInfo(NodeMap* nodes) { |
| 368 | LOG(ERROR) << "#Unique Atoms: " << atom_index_to_id_.size(); |
| 369 | LOG(ERROR) << "#Unique Nodes: " << entries_.size(); |
| 370 | |
| 371 | for (size_t i = 0; i < entries_.size(); i++) { |
| 372 | StdIntMap* parents = entries_[i].parents; |
| 373 | const std::vector<int>& regexps = entries_[i].regexps; |
| 374 | LOG(ERROR) << "EntryId: " << i |
| 375 | << " N: " << parents->size() << " R: " << regexps.size(); |
| 376 | for (StdIntMap::iterator it = parents->begin(); it != parents->end(); ++it) |
| 377 | LOG(ERROR) << it->first; |
| 378 | } |
| 379 | LOG(ERROR) << "Map:"; |
| 380 | for (NodeMap::const_iterator iter = nodes->begin(); |
| 381 | iter != nodes->end(); ++iter) |
| 382 | LOG(ERROR) << "NodeId: " << (*iter).second->unique_id() |
| 383 | << " Str: " << (*iter).first; |
| 384 | } |
| 385 | |
| 386 | std::string PrefilterTree::DebugNodeString(Prefilter* node) const { |
| 387 | std::string node_string = ""; |