diff --git a/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h b/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h index 35f50fcf1..a339fd80b 100644 --- a/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h +++ b/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h @@ -408,25 +408,8 @@ class LS_LC_CSR_Graph : private boost::noncopyable { Compaction policy utilities. */ - // Returns an estimated memory usage in bytes for the entire data structure. - inline size_t getMemoryUsageBytes() { - size_t estimate = m_vertices.size() * sizeof(VertexMetadata); - if constexpr (HasVertexData) { - estimate += m_vertices.size() * sizeof(VertexData); - } - m_edges_lock.lock(); - { - estimate += - (m_edges[0].size() + m_edges_tail.load(std::memory_order_relaxed)) * - sizeof(EdgeMetadata); - } - m_edges_lock.unlock(); - if constexpr (HasEdgeData) { - estimate += m_edge_data.size() * - (sizeof(EdgeData) + - sizeof(std::pair)); - } - return estimate; + inline size_t getCSRMemoryUsageBytes() { + return m_edges[0].size() * sizeof(EdgeMetadata); } // Returns the number of bytes used for the log.