From b5dcbcc05127e143cef0ab565720cda427cdd27e Mon Sep 17 00:00:00 2001 From: karenzshea Date: Wed, 11 Apr 2018 11:52:53 +0200 Subject: [PATCH] log graph size --- src/contractor/graph_contractor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/contractor/graph_contractor.cpp b/src/contractor/graph_contractor.cpp index 221e629e9..211b35d56 100644 --- a/src/contractor/graph_contractor.cpp +++ b/src/contractor/graph_contractor.cpp @@ -760,8 +760,13 @@ std::vector contractGraph(ContractorGraph &graph, ++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); RenumberGraph(graph, new_to_old_node_id); + */ return std::move(node_data.is_core); }