| 913 | } |
| 914 | |
| 915 | size_t GenericClusterImpl::TotalMemoryUsage() const noexcept |
| 916 | { |
| 917 | return // Dynamic memory allocated in this Cluster. |
| 918 | memusage::DynamicUsage(m_mapping) + memusage::DynamicUsage(m_linearization) + |
| 919 | // Dynamic memory usage inside m_depgraph. |
| 920 | m_depgraph.DynamicMemoryUsage() + |
| 921 | // Memory usage of the allocated Cluster itself. |
| 922 | memusage::MallocUsage(sizeof(GenericClusterImpl)) + |
| 923 | // Memory usage of the ClusterSet::m_clusters entry. |
| 924 | sizeof(std::unique_ptr<Cluster>); |
| 925 | } |
| 926 | |
| 927 | size_t SingletonClusterImpl::TotalMemoryUsage() const noexcept |
| 928 | { |
no test coverage detected