src/backend/storage/data_table.cpp
/**
 * @brief Return total number of bytes a data table occupies
 */
@brief Return total number of bytes a data table occupies
@brief Return total number of bytes a data table occupies
uint64_t DataTable::GetMemoryFootprint(const oid_t table_oid) const {
  uint64_t count = 0;
  for (size_t i = 0; i < tile_groups_.size(); ++i)
  {
    auto tile_group = GetTileGroup(i);
    size_t recycled_count = gc::GCManagerFactory::GetInstance().GetRefurbishedTupleSlotCountPerTileGroup(table_oid, tile_groups_[i]);
    count += tile_group -> GetMemoryFootprint(recycled_count);
  }
  return count;
}
uint64_t DataTable :: GetMemoryFootprint ( const oid_t table_oid ) const { uint64_t count = 0 ; for ( size_t i = 0 ; i < tile_groups_ . size ( ) ; ++ i ) { auto tile_group = GetTileGroup ( i ) ; size_t recycled_count = gc :: GCManagerFactory :: GetInstance ( ) . GetRefurbishedTupleSlotCountPerTileGroup ( table_oid , tile_groups_ [ i ] ) ; count += tile_group -> GetMemoryFootprint ( recycled_count ) ; } return count ; }
@brief Return total number of bytes a data table occupies
@brief Return total number of bytes a data table occupies