log graph size

This commit is contained in:
karenzshea 2018-04-11 11:52:53 +02:00
parent c1fd02bb8d
commit b5dcbcc051

View File

@ -760,8 +760,13 @@ std::vector<bool> contractGraph(ContractorGraph &graph,
++current_level; ++current_level;
} }
util::Log() << "Contracted graph has " << graph.GetNumberOfEdges()
<< " thus far, with an edge list of (" << (graph.GetNumberOfEdges() * sizeof(ContractorEdge)) << " bytes)";
/* comment out renumbering and observe if memory spike still happens
node_data.Renumber(new_to_old_node_id); node_data.Renumber(new_to_old_node_id);
RenumberGraph(graph, new_to_old_node_id); RenumberGraph(graph, new_to_old_node_id);
*/
return std::move(node_data.is_core); return std::move(node_data.is_core);
} }