Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
bloaty::Rollup Class Reference

Public Member Functions

void Add (const Rollup &other)
 
void AddSizes (const std::vector< std::string > &names, uint64_t size, bool is_vmsize)
 
void CreateDiffModeRollupOutput (Rollup *base, const Options &options, RollupOutput *output) const
 
void CreateRollupOutput (const Options &options, RollupOutput *output) const
 
int64_t file_total () const
 
int64_t filtered_file_total () const
 
Rollupoperator= (const Rollup &)=delete
 
Rollupoperator= (Rollup &&other)=default
 
 Rollup ()
 
 Rollup (const Rollup &)=delete
 
 Rollup (Rollup &&other)=default
 
void SetFilterRegex (const ReImpl *regex)
 
void Subtract (const Rollup &other)
 

Private Types

typedef std::unordered_map< std::string, std::unique_ptr< Rollup > > ChildMap
 

Private Member Functions

void AddInternal (const std::vector< std::string > &names, size_t i, uint64_t size, bool is_vmsize)
 
void CreateRows (RollupRow *row, const Rollup *base, const Options &options, bool is_toplevel) const
 
void SortAndAggregateRows (RollupRow *row, const Rollup *base, const Options &options, bool is_toplevel) const
 

Static Private Member Functions

static RollupGetEmpty ()
 
static double Percent (int64_t part, int64_t whole)
 

Private Attributes

ChildMap children_
 
int64_t file_total_ = 0
 
const ReImplfilter_regex_ = nullptr
 
int64_t filtered_file_total_ = 0
 
int64_t filtered_vm_total_ = 0
 
int64_t vm_total_ = 0
 

Static Private Attributes

static Rollupempty_
 

Detailed Description

Definition at line 253 of file bloaty.cc.

Member Typedef Documentation

◆ ChildMap

typedef std::unordered_map<std::string, std::unique_ptr<Rollup> > bloaty::Rollup::ChildMap
private

Definition at line 332 of file bloaty.cc.

Constructor & Destructor Documentation

◆ Rollup() [1/3]

bloaty::Rollup::Rollup ( )
inline

Definition at line 255 of file bloaty.cc.

◆ Rollup() [2/3]

bloaty::Rollup::Rollup ( const Rollup )
delete

◆ Rollup() [3/3]

bloaty::Rollup::Rollup ( Rollup &&  other)
default

Member Function Documentation

◆ Add()

void bloaty::Rollup::Add ( const Rollup other)
inline

Definition at line 306 of file bloaty.cc.

◆ AddInternal()

void bloaty::Rollup::AddInternal ( const std::vector< std::string > &  names,
size_t  i,
uint64_t  size,
bool  is_vmsize 
)
inlineprivate

Definition at line 345 of file bloaty.cc.

◆ AddSizes()

void bloaty::Rollup::AddSizes ( const std::vector< std::string > &  names,
uint64_t  size,
bool  is_vmsize 
)
inline

Definition at line 262 of file bloaty.cc.

◆ CreateDiffModeRollupOutput()

void bloaty::Rollup::CreateDiffModeRollupOutput ( Rollup base,
const Options &  options,
RollupOutput output 
) const
inline

Definition at line 274 of file bloaty.cc.

◆ CreateRollupOutput()

void bloaty::Rollup::CreateRollupOutput ( const Options &  options,
RollupOutput output 
) const
inline

Definition at line 269 of file bloaty.cc.

◆ CreateRows()

void bloaty::Rollup::CreateRows ( RollupRow row,
const Rollup base,
const Options &  options,
bool  is_toplevel 
) const
private

Definition at line 406 of file bloaty.cc.

◆ file_total()

int64_t bloaty::Rollup::file_total ( ) const
inline

Definition at line 319 of file bloaty.cc.

◆ filtered_file_total()

int64_t bloaty::Rollup::filtered_file_total ( ) const
inline

Definition at line 320 of file bloaty.cc.

◆ GetEmpty()

static Rollup* bloaty::Rollup::GetEmpty ( )
inlinestaticprivate

Definition at line 336 of file bloaty.cc.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

Rollup& bloaty::Rollup::operator= ( Rollup &&  other)
default

◆ Percent()

static double bloaty::Rollup::Percent ( int64_t  part,
int64_t  whole 
)
inlinestaticprivate

Definition at line 386 of file bloaty.cc.

◆ SetFilterRegex()

void bloaty::Rollup::SetFilterRegex ( const ReImpl regex)
inline

Definition at line 287 of file bloaty.cc.

◆ SortAndAggregateRows()

void bloaty::Rollup::SortAndAggregateRows ( RollupRow row,
const Rollup base,
const Options &  options,
bool  is_toplevel 
) const
private

Definition at line 429 of file bloaty.cc.

◆ Subtract()

void bloaty::Rollup::Subtract ( const Rollup other)
inline

Definition at line 292 of file bloaty.cc.

Member Data Documentation

◆ children_

ChildMap bloaty::Rollup::children_
private

Definition at line 333 of file bloaty.cc.

◆ empty_

Rollup * bloaty::Rollup::empty_
staticprivate

Definition at line 334 of file bloaty.cc.

◆ file_total_

int64_t bloaty::Rollup::file_total_ = 0
private

Definition at line 324 of file bloaty.cc.

◆ filter_regex_

const ReImpl* bloaty::Rollup::filter_regex_ = nullptr
private

Definition at line 328 of file bloaty.cc.

◆ filtered_file_total_

int64_t bloaty::Rollup::filtered_file_total_ = 0
private

Definition at line 326 of file bloaty.cc.

◆ filtered_vm_total_

int64_t bloaty::Rollup::filtered_vm_total_ = 0
private

Definition at line 325 of file bloaty.cc.

◆ vm_total_

int64_t bloaty::Rollup::vm_total_ = 0
private

Definition at line 323 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