|
ATLAS Offline Software
|
Go to the documentation of this file.
39 inuse = free = total = 0;
65 os << std::setw(7) <<
stat.inuse <<
"/"
66 << std::setw(7) <<
stat.free <<
"/"
67 << std::setw(7) <<
stat.total;
119 os <<
"Elts InUse/Free/Total"
120 <<
" Bytes InUse/Free/Total Blocks InUse/Free/Total";
133 os <<
" " <<
stats() <<
" " <<
name() << std::endl;
virtual Stats stats() const =0
Return the statistics block for this allocator.
Stat blocks
Counts of blocks.
void clear()
Reset to zero.
void clear()
Reset to zero.
Statistics for an allocator.
Stat & operator+=(const Stat &other)
Accumulate.
Common base class for arena allocator classes. See Arena.h for an overview of the arena-based memory ...
virtual void report(std::ostream &os) const
Generate a report on the memory usage of this allocator.
Stat bytes
Counts of bytes.
Stat()
Default constructor.
static void header(std::ostream &os)
Print report header.
std::ostream & operator<<(std::ostream &os, const ArenaAllocatorBase::Stats::Stat &stat)
Format a statistic structure.
Stats & operator+=(const Stats &other)
Accumulate.
Stat elts
Counts of elements.
virtual const std::string & name() const =0
Return the name of this allocator.