少年修仙传客户端基础资源
hch
2024-05-11 eccde9043d770a64d9181c69393d3ff7c20e21bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <ostream>
#include "Statistics.h"
#include "Statistics/HighLevelBreakdown.h"
#include "Statistics/TenLargestSymbols.h"
#include "Statistics/AllSymbolSizes.h"
 
namespace mapfileparser
{
    void Statistics::Generate(MapFile& mapFile, std::ostream& out)
    {
        out << "Code size statistics from the map file\n";
        out << "======================================\n";
        out << std::endl;
        out << HighLevelBreakdown(mapFile.symbols) << std::endl;
        out << TenLargestSymbols(mapFile.symbols) << std::endl;
        out << AllSymbolSizes(mapFile.symbols) << std::endl;
    }
}