Skip to content

Commit

Permalink
Unused variable fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi Lomia committed Oct 6, 2021
1 parent b00bf01 commit cc9837f
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion tools/graph-stats/graph-memory-stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ SaveToJson(
if (!json_to_dump) {
return json_to_dump.error();
}
std::string serialized = std::move(json_to_dump.value());

std::string serialized = std::move(json_to_dump.value());
serialized = serialized + "\n";

myfile.open(path_to_save);
Expand Down Expand Up @@ -297,34 +297,64 @@ doMemoryAnalysis(const std::unique_ptr<katana::PropertyGraph> graph) {
auto basic_raw_json_res = SaveToJson(
katana::JsonDump(basic_raw_stats), outputfilename,
"basic_raw_stats.json");
KATANA_LOG_VASSERT(
basic_raw_json_res, "unexpected errror {}", basic_raw_json_res.error());

auto all_node_prop_json_res = SaveToJson(
katana::JsonDump(all_node_prop_stats), outputfilename,
"node_prop_stats.json");
KATANA_LOG_VASSERT(
all_node_prop_json_res, "unexpected errror {}",
all_node_prop_json_res.error());

auto all_node_width_json_res = SaveToJson(
katana::JsonDump(all_node_width_stats), outputfilename,
"node_width_stats.json");
KATANA_LOG_VASSERT(
all_node_width_json_res, "unexpected errror {}",
all_node_width_json_res.error());

auto all_edge_prop_json_res = SaveToJson(
katana::JsonDump(all_edge_prop_stats), outputfilename,
"edge_prop_stats.json");
KATANA_LOG_VASSERT(
all_edge_prop_json_res, "unexpected errror {}",
all_edge_prop_json_res.error());

auto all_edge_width_json_res = SaveToJson(
katana::JsonDump(all_edge_width_stats), outputfilename,
"edge_width_stats.json");
KATANA_LOG_VASSERT(
all_edge_width_json_res, "unexpected errror {}",
all_edge_width_json_res.error());

auto all_node_alloc_json_res = SaveToJson(
katana::JsonDump(all_node_alloc), outputfilename,
"default_node_alloc.json");
KATANA_LOG_VASSERT(
all_node_alloc_json_res, "unexpected errror {}",
all_node_alloc_json_res.error());

auto all_edge_alloc_json_res = SaveToJson(
katana::JsonDump(all_edge_alloc), outputfilename,
"default_edge_alloc.json");
KATANA_LOG_VASSERT(
all_edge_width_json_res, "unexpected errror {}",
all_edge_width_json_res.error());

auto all_node_usage_json_res = SaveToJson(
katana::JsonDump(all_node_usage), outputfilename,
"grouping_node_usage.json");
KATANA_LOG_VASSERT(
all_edge_width_json_res, "unexpected errror {}",
all_edge_width_json_res.error());

auto all_edge_usage_json_res = SaveToJson(
katana::JsonDump(all_edge_usage), outputfilename,
"grouping_edge_usage.json");
KATANA_LOG_VASSERT(
all_edge_width_json_res, "unexpected errror {}",
all_edge_width_json_res.error());
}

int
Expand Down

0 comments on commit cc9837f

Please sign in to comment.