Electroneum
Loading...
Searching...
No Matches
size_logger Class Reference

Public Member Functions

 ~size_logger ()
void add (const char *type, size_t size)

Detailed Description

Definition at line 51 of file object_sizes.cpp.

Constructor & Destructor Documentation

◆ ~size_logger()

size_logger::~size_logger ( )
inline

Definition at line 54 of file object_sizes.cpp.

55 {
56 for (const auto &i: types)
57 std::cout << std::to_string(i.first) << "\t" << i.second << std::endl;
58 }

Member Function Documentation

◆ add()

void size_logger::add ( const char * type,
size_t size )
inline

Definition at line 59 of file object_sizes.cpp.

59{ types.insert(std::make_pair(size, type)); }

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/debug_utilities/object_sizes.cpp