billw2015
King
- Joined
- Jun 22, 2015
- Messages
- 837
A breakdown of allocations from the memory tracking code I added. I'm going to break it down by allocation location as well at some point, so we can see where all these ints are coming from!
Code:
-----------------------
Memory Usage Statistics
-----------------------
allocated type blocks bytes
-------------- ------ -----
int 2990661 69.6% 270.13 MB 50.6%
[unknown] 911573 21.2% 126.64 MB 23.7%
bool 66140 1.5% 54.91 MB 10.3%
int * 3946 0.1% 14.11 MB 2.6%
class CvBuildingInfo 6082 0.1% 12.95 MB 2.4%
class CvUnitAI 4824 0.1% 8.08 MB 1.5%
class CvUnitInfo 2075 0.0% 4.81 MB 0.9%
unsigned int 23232 0.5% 4.52 MB 0.8%
short 67649 1.6% 4.34 MB 0.8%
class CvArtInfoUnit 5071 0.1% 3.04 MB 0.6%
class CvPromotionInfo 1266 0.0% 2.75 MB 0.5%
class CvArtInfoBuilding 5613 0.1% 2.38 MB 0.4%
class CvBuildingClassInfo 6073 0.1% 2.01 MB 0.4%
short * 9956 0.2% 1.94 MB 0.4%
char 65581 1.5% 1.84 MB 0.3%
class CvUnitCombatInfo 1073 0.0% 1.79 MB 0.3%
struct CvUpgradeCache::upgradePair 18 0.0% 1.75 MB 0.3%
char * 8365 0.2% 1.63 MB 0.3%
class CvReplayMessage 27484 0.6% 1.47 MB 0.3%