Skip to content

Commit

Permalink
Commit before rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi Lomia committed Sep 27, 2021
1 parent beca81f commit e7fb031
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tools/graph-stats/graph-memory-stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ void
doNonGroupingAnalysis(const std::unique_ptr<katana::PropertyGraph> graph) {
using map_element = std::unordered_map<std::string, int64_t>;
using memory_map = std::unordered_map<std::string, map_element>;

memory_map mem_map = {};
map_element basic_raw_stats = {};

auto node_schema = graph->full_node_schema();
auto edge_schema = graph->full_edge_schema();
int64_t total_num_node_props = node_schema->num_fields();
int64_t total_num_edge_props = edge_schema->num_fields();

std::cout << "\n";

basic_raw_stats.insert(std::pair("Node-Schema-Size", total_num_node_props));
basic_raw_stats.insert(std::pair("Edge-Schema-Size", total_num_edge_props));
basic_raw_stats.insert(
Expand All @@ -141,10 +141,10 @@ doNonGroupingAnalysis(const std::unique_ptr<katana::PropertyGraph> graph) {

auto atomic_edge_types = graph->ListAtomicEdgeTypes();

std::cout << "Node Types<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
PrintAtomicTypes(atomic_node_types);
std::cout << "Edge Types<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
PrintAtomicTypes(atomic_edge_types);
// std::cout << "Node Types<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
// PrintAtomicTypes(atomic_node_types);
// std::cout << "Edge Types<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
// PrintAtomicTypes(atomic_edge_types);

const katana::GraphTopology& g_topo = graph->topology();

Expand All @@ -169,6 +169,7 @@ doNonGroupingAnalysis(const std::unique_ptr<katana::PropertyGraph> graph) {

std::cout << "\n";
std::cout << "Edge Schema\n";
std::cout << static_cast<arrow::Type::type>(0) << "\n";
std::cout << "----------------------------------------\n";

for (int32_t i = 0; i < edge_schema->num_fields(); ++i) {
Expand Down

0 comments on commit e7fb031

Please sign in to comment.