MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / PrintDebugInfo

Method PrintDebugInfo

extern/re2/re2/prefilter_tree.cc:367–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367void 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
386std::string PrefilterTree::DebugNodeString(Prefilter* node) const {
387 std::string node_string = "";

Callers

nothing calls this directly

Calls 4

unique_idMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected