#include "tools/binary_size/libsupersize/viewer/caspian/model.h"
#include <algorithm>
#include <cassert>
#include <iostream>
#include <list>
#include <sstream>
#include <tuple>
#include <unordered_map>
#include "tools/binary_size/libsupersize/viewer/caspian/file_format.h"
#include "tools/binary_size/libsupersize/viewer/caspian/function_signature.h"
namespace caspian {
namespace {
constexpr const char kNoPath[] = …;
}
Container::Container(const std::string& name_in) : … { … }
Container::~Container() = default;
Container::Container(const Container& other) = default;
void Container::AssignShortNames(std::vector<Container>* containers) { … }
BaseSymbol::~BaseSymbol() = default;
Symbol::Symbol() = default;
Symbol::~Symbol() = default;
Symbol::Symbol(const Symbol& other) = default;
void Symbol::DeriveNames() const { … }
int32_t Symbol::Size() const { … }
int32_t Symbol::Padding() const { … }
int32_t Symbol::Address() const { … }
int32_t Symbol::Flags() const { … }
std::string_view Symbol::FullName() const { … }
std::string_view Symbol::TemplateName() const { … }
std::string_view Symbol::Name() const { … }
const std::vector<Symbol*>* Symbol::Aliases() const { … }
SectionId Symbol::Section() const { … }
std::string_view Symbol::ContainerName() const { … }
const char* Symbol::ObjectPath() const { … }
const char* Symbol::SourcePath() const { … }
const char* Symbol::GroupingPath() const { … }
const char* Symbol::SectionName() const { … }
const char* Symbol::Component() const { … }
std::string* Symbol::Disassembly() const { … }
float Symbol::Pss() const { … }
float Symbol::PssWithoutPadding() const { … }
float Symbol::PaddingPss() const { … }
float Symbol::BeforePss() const { … }
DiffStatus Symbol::GetDiffStatus() const { … }
DeltaSymbol::DeltaSymbol(const Symbol* before, const Symbol* after)
: … { … }
DeltaSymbol::~DeltaSymbol() = default;
int32_t DeltaSymbol::Size() const { … }
int32_t DeltaSymbol::Padding() const { … }
int32_t DeltaSymbol::Address() const { … }
int32_t DeltaSymbol::Flags() const { … }
std::string_view DeltaSymbol::FullName() const { … }
std::string_view DeltaSymbol::TemplateName() const { … }
std::string_view DeltaSymbol::Name() const { … }
const std::vector<Symbol*>* DeltaSymbol::Aliases() const { … }
SectionId DeltaSymbol::Section() const { … }
std::string_view DeltaSymbol::ContainerName() const { … }
const char* DeltaSymbol::ObjectPath() const { … }
const char* DeltaSymbol::SourcePath() const { … }
const char* DeltaSymbol::GroupingPath() const { … }
const char* DeltaSymbol::SectionName() const { … }
const char* DeltaSymbol::Component() const { … }
std::string* DeltaSymbol::Disassembly() const { … }
float DeltaSymbol::Pss() const { … }
float DeltaSymbol::PssWithoutPadding() const { … }
float DeltaSymbol::PaddingPss() const { … }
float DeltaSymbol::BeforePss() const { … }
DiffStatus DeltaSymbol::GetDiffStatus() const { … }
TreeNode::TreeNode(ArtifactType artifact_type_in, int32_t id_in)
: … { … }
TreeNode::~TreeNode() { … }
std::ostream& operator<<(std::ostream& os, const Symbol& sym) { … }
BaseSizeInfo::BaseSizeInfo() = default;
BaseSizeInfo::BaseSizeInfo(const BaseSizeInfo&) = default;
BaseSizeInfo::~BaseSizeInfo() = default;
SectionId BaseSizeInfo::ShortSectionName(const char* section_name) { … }
SizeInfo::SizeInfo() = default;
SizeInfo::~SizeInfo() = default;
bool SizeInfo::IsSparse() const { … }
DeltaSizeInfo::DeltaSizeInfo(const SizeInfo* before_in,
const SizeInfo* after_in,
const std::vector<std::string>* removed_sources_in,
const std::vector<std::string>* added_sources_in)
: … { … }
DeltaSizeInfo::~DeltaSizeInfo() = default;
DeltaSizeInfo::DeltaSizeInfo(const DeltaSizeInfo&) = default;
DeltaSizeInfo& DeltaSizeInfo::operator=(const DeltaSizeInfo&) = default;
bool DeltaSizeInfo::IsSparse() const { … }
void TreeNode::WriteIntoJson(
const JsonWriteOptions& opts,
std::function<bool(const TreeNode* const& l, const TreeNode* const& r)>
compare_func,
int depth,
Json::Value* out) { … }
NodeStats::NodeStats() = default;
NodeStats::~NodeStats() = default;
NodeStats::NodeStats(const BaseSymbol& symbol) { … }
void NodeStats::WriteIntoJson(const JsonWriteOptions& opts,
Json::Value* out) const { … }
NodeStats& NodeStats::operator+=(const NodeStats& other) { … }
SectionId NodeStats::ComputeBiggestSection() const { … }
int32_t NodeStats::SumCount() const { … }
int32_t NodeStats::SumAdded() const { … }
int32_t NodeStats::SumRemoved() const { … }
DiffStatus NodeStats::GetGlobalDiffStatus() const { … }
TreeNodeFactory::TreeNodeFactory() = default;
TreeNodeFactory::~TreeNodeFactory() = default;
TreeNode* TreeNodeFactory::Make(ArtifactType artifact_type) { … }
}