Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
bloaty::Bloaty Class Reference

Classes

struct  InputFileInfo
 

Public Member Functions

void AddDataSource (const std::string &name)
 
void AddDebugFilename (const std::string &filename)
 
void AddFilename (const std::string &filename, bool base_file)
 
 Bloaty (const Bloaty &)=delete
 
 Bloaty (const InputFileFactory &factory, const Options &options)
 
void DefineCustomDataSource (const CustomDataSource &source)
 
void DisassembleFunction (string_view function, const Options &options, RollupOutput *output)
 
size_t GetSourceCount () const
 
Bloatyoperator= (const Bloaty &)=delete
 
void ScanAndRollup (const Options &options, RollupOutput *output)
 

Private Member Functions

template<size_t T>
void AddBuiltInSources (const DataSourceDefinition(&sources)[T], const Options &options)
 
std::unique_ptr< ObjectFileGetObjectFile (const std::string &filename) const
 
void ScanAndRollupFile (const std::string &filename, Rollup *rollup, std::vector< std::string > *out_build_ids) const
 
void ScanAndRollupFiles (const std::vector< std::string > &filenames, std::vector< std::string > *build_ids, Rollup *rollup) const
 

Static Private Member Functions

static DataSource EffectiveSymbolSource (const Options &options)
 

Private Attributes

std::map< std::string, std::unique_ptr< ConfiguredDataSource > > all_known_sources_
 
std::unique_ptr< google::protobuf::Arenaarena_
 
std::vector< InputFileInfobase_files_
 
std::map< std::string, std::string > debug_files_
 
const InputFileFactoryfile_factory_
 
std::vector< InputFileInfoinput_files_
 
const Options options_
 
std::vector< std::string > source_names_
 
std::vector< ConfiguredDataSource * > sources_
 

Detailed Description

Definition at line 1374 of file bloaty.cc.

Constructor & Destructor Documentation

◆ Bloaty() [1/2]

bloaty::Bloaty::Bloaty ( const InputFileFactory factory,
const Options &  options 
)

Definition at line 1454 of file bloaty.cc.

◆ Bloaty() [2/2]

bloaty::Bloaty::Bloaty ( const Bloaty )
delete

Member Function Documentation

◆ AddBuiltInSources()

template<size_t T>
void bloaty::Bloaty::AddBuiltInSources ( const DataSourceDefinition(&)  sources[T],
const Options &  options 
)
inlineprivate

Definition at line 1394 of file bloaty.cc.

◆ AddDataSource()

void bloaty::Bloaty::AddDataSource ( const std::string &  name)

Definition at line 1531 of file bloaty.cc.

◆ AddDebugFilename()

void bloaty::Bloaty::AddDebugFilename ( const std::string &  filename)

Definition at line 1495 of file bloaty.cc.

◆ AddFilename()

void bloaty::Bloaty::AddFilename ( const std::string &  filename,
bool  base_file 
)

Definition at line 1484 of file bloaty.cc.

◆ DefineCustomDataSource()

void bloaty::Bloaty::DefineCustomDataSource ( const CustomDataSource &  source)

Definition at line 1505 of file bloaty.cc.

◆ DisassembleFunction()

void bloaty::Bloaty::DisassembleFunction ( string_view  function,
const Options &  options,
RollupOutput output 
)

Definition at line 1828 of file bloaty.cc.

◆ EffectiveSymbolSource()

static DataSource bloaty::Bloaty::EffectiveSymbolSource ( const Options &  options)
inlinestaticprivate

Definition at line 1408 of file bloaty.cc.

◆ GetObjectFile()

std::unique_ptr< ObjectFile > bloaty::Bloaty::GetObjectFile ( const std::string &  filename) const
private

Definition at line 1460 of file bloaty.cc.

◆ GetSourceCount()

size_t bloaty::Bloaty::GetSourceCount ( ) const
inline

Definition at line 1383 of file bloaty.cc.

◆ operator=()

Bloaty& bloaty::Bloaty::operator= ( const Bloaty )
delete

◆ ScanAndRollup()

void bloaty::Bloaty::ScanAndRollup ( const Options &  options,
RollupOutput output 
)

Definition at line 1767 of file bloaty.cc.

◆ ScanAndRollupFile()

void bloaty::Bloaty::ScanAndRollupFile ( const std::string &  filename,
Rollup rollup,
std::vector< std::string > *  out_build_ids 
) const
private

Definition at line 1630 of file bloaty.cc.

◆ ScanAndRollupFiles()

void bloaty::Bloaty::ScanAndRollupFiles ( const std::vector< std::string > &  filenames,
std::vector< std::string > *  build_ids,
Rollup rollup 
) const
private

Definition at line 1711 of file bloaty.cc.

Member Data Documentation

◆ all_known_sources_

std::map<std::string, std::unique_ptr<ConfiguredDataSource> > bloaty::Bloaty::all_known_sources_
private

Definition at line 1435 of file bloaty.cc.

◆ arena_

std::unique_ptr<google::protobuf::Arena> bloaty::Bloaty::arena_
private

Definition at line 1451 of file bloaty.cc.

◆ base_files_

std::vector<InputFileInfo> bloaty::Bloaty::base_files_
private

Definition at line 1447 of file bloaty.cc.

◆ debug_files_

std::map<std::string, std::string> bloaty::Bloaty::debug_files_
private

Definition at line 1448 of file bloaty.cc.

◆ file_factory_

const InputFileFactory& bloaty::Bloaty::file_factory_
private

Definition at line 1429 of file bloaty.cc.

◆ input_files_

std::vector<InputFileInfo> bloaty::Bloaty::input_files_
private

Definition at line 1446 of file bloaty.cc.

◆ options_

const Options bloaty::Bloaty::options_
private

Definition at line 1430 of file bloaty.cc.

◆ source_names_

std::vector<std::string> bloaty::Bloaty::source_names_
private

Definition at line 1440 of file bloaty.cc.

◆ sources_

std::vector<ConfiguredDataSource*> bloaty::Bloaty::sources_
private

Definition at line 1439 of file bloaty.cc.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:58